# HG changeset patch # User dasilvj # Date 1256307882 -7200 # Node ID c689a113b9f8d40c0ead04207f6209d7d52c21cb # Parent 17300b201cf5190b24dbf4dd7b8a502e863fa2d2 - Changement des icones du launcher et de la status bar. - Correction du probleme de status dans l'activite SendIM. diff -r 17300b201cf5 -r c689a113b9f8 AndroidManifest.xml --- a/AndroidManifest.xml Thu Oct 15 17:36:51 2009 +0200 +++ b/AndroidManifest.xml Fri Oct 23 16:24:42 2009 +0200 @@ -2,7 +2,7 @@ - diff -r 17300b201cf5 -r c689a113b9f8 res/drawable/beem_launcher_icon_color.png Binary file res/drawable/beem_launcher_icon_color.png has changed diff -r 17300b201cf5 -r c689a113b9f8 res/drawable/beem_launcher_icon_silver.png Binary file res/drawable/beem_launcher_icon_silver.png has changed diff -r 17300b201cf5 -r c689a113b9f8 res/drawable/beem_status_icon.png Binary file res/drawable/beem_status_icon.png has changed diff -r 17300b201cf5 -r c689a113b9f8 src/com/beem/project/beem/service/BeemChatManager.java --- a/src/com/beem/project/beem/service/BeemChatManager.java Thu Oct 15 17:36:51 2009 +0200 +++ b/src/com/beem/project/beem/service/BeemChatManager.java Fri Oct 23 16:24:42 2009 +0200 @@ -74,7 +74,7 @@ private void notifyNewChat(IChat chat) { try { String text = chat.getParticipant().getJID(); - Notification notif = new Notification(com.beem.project.beem.R.drawable.notify_message, text, System + Notification notif = new Notification(android.R.drawable.stat_notify_chat, text, System .currentTimeMillis()); notif.defaults = Notification.DEFAULT_ALL; notif.flags = Notification.FLAG_AUTO_CANCEL; diff -r 17300b201cf5 -r c689a113b9f8 src/com/beem/project/beem/service/XmppFacade.java --- a/src/com/beem/project/beem/service/XmppFacade.java Thu Oct 15 17:36:51 2009 +0200 +++ b/src/com/beem/project/beem/service/XmppFacade.java Fri Oct 23 16:24:42 2009 +0200 @@ -58,7 +58,7 @@ String text = ""; if (msg != null) text = msg; - mStatusNotification = new Notification(com.beem.project.beem.R.drawable.notify_signal, text, System + mStatusNotification = new Notification(com.beem.project.beem.R.drawable.beem_status_icon, text, System .currentTimeMillis()); mStatusNotification.defaults = Notification.DEFAULT_ALL; mStatusNotification.flags = Notification.FLAG_NO_CLEAR; diff -r 17300b201cf5 -r c689a113b9f8 src/com/beem/project/beem/ui/SendIM.java --- a/src/com/beem/project/beem/ui/SendIM.java Thu Oct 15 17:36:51 2009 +0200 +++ b/src/com/beem/project/beem/ui/SendIM.java Fri Oct 23 16:24:42 2009 +0200 @@ -320,7 +320,7 @@ if (contactName == null || "".equals(contactName)) { contactName = mContact.getJID(); contactName = StringUtils.parseName(contactName); - if ("".equals(contactName)) + if (contactName == null || "".equals(contactName)) contactName = mContact.getJID(); } mLogin.setText(contactName); @@ -473,7 +473,6 @@ if (mContact.getJID().equals(StringUtils.parseBareAddress(presence.getFrom()))) { mContact.setStatus(mRoster.getPresence(StringUtils.parseBareAddress(presence.getFrom()))); Log.d("SENDIM -- onPresenceChanged", "Contact current status: " + mContact.getStatus() + ""); - updateStatusIcon(); mHandler.post(new RunnableChange()); } } @@ -491,6 +490,7 @@ @Override public void run() { + updateStatusIcon(); mStatusText.setText(mContact.getMsgState()); Linkify.addLinks(mStatusText, Linkify.WEB_URLS); }