# HG changeset patch # User Da Risk # Date 1275594212 -7200 # Node ID 56d44e5c7081b80dbef95068d92f9dfd565d63b8 # Parent 6c83317a3c8420930bd81add5cc11b97cc45dbfe Many little modifications. Clean strings.xml Disable use of preference for status notification. Fix a bug with the auto away feature. diff -r 6c83317a3c84 -r 56d44e5c7081 res/values-de/strings.xml --- a/res/values-de/strings.xml Tue Jun 01 21:48:38 2010 +0200 +++ b/res/values-de/strings.xml Thu Jun 03 21:43:32 2010 +0200 @@ -21,16 +21,6 @@ Beem Service erstellt Beem Service verworfen - - Server Verbindung - Benutzer id: - Passwort: - Dienst: - Port: - Proxy Informationen - Anmelden: - Ok - Chatten Anrufen @@ -130,9 +120,6 @@ %s will dich zu seiner/ihrer Kontaktliste hinzufügen. Willst du ihn/sie authorisieren ? Kontakt authorisieren ? - - Offline - Du hast eine neue Nachricht @@ -154,9 +141,6 @@ Beem - Benutzerinformation - Zurücksetzen - Anmelden - Speichern Dieses Konto erstellen Dieses Konto erstellen und benutzen @@ -174,7 +158,6 @@ Einstellungen Anmelden Verbinden. Bitte warten... - Maximaler Wiederholungsversuch Leider trat ein Fehler auf.\n\nFehler Detail:\n%s Anmelden Keine Internetverbindung gefunden diff -r 6c83317a3c84 -r 56d44e5c7081 res/values-fr/strings.xml --- a/res/values-fr/strings.xml Tue Jun 01 21:48:38 2010 +0200 +++ b/res/values-fr/strings.xml Thu Jun 03 21:43:32 2010 +0200 @@ -21,16 +21,6 @@ BeemService Créé BeemService détruit - - Connexion au serveur - Id utilisateur: - Mot de passe: - Service: - Port: - Informations proxy - Nom d\'utilisateur: - Ok - Chat Appeler @@ -114,10 +104,10 @@ Nom d\'utilisateur Mot de passe Activer l\'absence automatique - Change votre status en Absent automatiquement quand l\'écran du telephone s\'éteind - Message d\'asbence + Change votre status en Absent automatiquement quand l\'écran du telephone s\'éteint + Message d\'absence Votre Message d\'absence - Je suis absent car mon ecran est éteind + Je suis absent car mon ecran est éteint Paramètres des notifications Activer le vibreur Activer le vibreur pour les messages entrants @@ -131,9 +121,6 @@ %s vient de vous ajouter à sa liste de contacts. Souhaitez-vous l\'autoriser ? Autoriser ce contact ? - - Non connecté(e) - Vous avez reçu un nouveau message @@ -163,9 +150,6 @@ - Réinitialiser - Se connecter - Enregistrer Créer ce compte Créer puis utiliser ce compte diff -r 6c83317a3c84 -r 56d44e5c7081 res/values-ru/strings.xml --- a/res/values-ru/strings.xml Tue Jun 01 21:48:38 2010 +0200 +++ b/res/values-ru/strings.xml Thu Jun 03 21:43:32 2010 +0200 @@ -21,16 +21,6 @@ - -Соединение -Имя пользователя: -Пароль: -Сервер: -Порт: -Прокси -Имя пользователя: -ОК - Написать Повонить @@ -132,9 +122,6 @@ - -Не подключен - Пришло новое сообщение @@ -156,9 +143,6 @@ Информация о пользователе -Очистить -Войти -Сохранить @@ -179,7 +163,6 @@ Настройки Войти Соединяемся, подождите немного... - Unfortunately, an error occured.\n\nError detail:\n%s Войти diff -r 6c83317a3c84 -r 56d44e5c7081 res/values-zh-rCN/strings.xml --- a/res/values-zh-rCN/strings.xml Tue Jun 01 21:48:38 2010 +0200 +++ b/res/values-zh-rCN/strings.xml Thu Jun 03 21:43:32 2010 +0200 @@ -21,16 +21,6 @@ Beem服务已创建 Beem服务已取消 - - 服务器连接 - 账号: - 密码: - 服务器: - 端口: - 代理信息 - 登录: - 确定 - 聊天 呼叫 @@ -132,9 +122,6 @@ %s 想要添加你到他/她的好友列表.批准他/她的请求吗? 批准好友请求? - - 未连接 - 你有一个新消息 @@ -156,9 +143,6 @@ Beem - 用户信息 - 重置 - 登陆 - 保存 创建这个账户 创建并使用这个账户 @@ -179,7 +163,6 @@ 设置 登录 连接中,请等待... - 最大重试次数 很遗憾,发生一个错误.\n\nE错误 详情:\n%s 登陆 diff -r 6c83317a3c84 -r 56d44e5c7081 res/values-zh-rTW/strings.xml --- a/res/values-zh-rTW/strings.xml Tue Jun 01 21:48:38 2010 +0200 +++ b/res/values-zh-rTW/strings.xml Thu Jun 03 21:43:32 2010 +0200 @@ -21,16 +21,6 @@ Beem服務已建立 Beem服務已取消 - - 伺服器連接 - 賬號: - 密碼: - 伺服器: - 通訊埠: - 代理訊息 - 登入: - 確定 - 聊天 呼叫 @@ -132,9 +122,6 @@ %s 想要新增你到他/她的好友清單.批准他/她的要求嗎? 批准好友要求? - - 未連接 - 你有一個新訊息 @@ -156,9 +143,6 @@ Beem - 使用者訊息 - 重設 - 登陸 - 儲存 建立這個賬戶 建立並使用這個賬戶 @@ -179,7 +163,6 @@ 設定 登入 連接中,請等待... - 最大重試次數 很遺憾,發生一個錯誤.\n\nE錯誤 詳情:\n%s 登陸 diff -r 6c83317a3c84 -r 56d44e5c7081 res/values/strings.xml --- a/res/values/strings.xml Tue Jun 01 21:48:38 2010 +0200 +++ b/res/values/strings.xml Thu Jun 03 21:43:32 2010 +0200 @@ -21,16 +21,6 @@ Beem Service Created Beem Service Destroyed - - Server connection - User id: - Password: - Service: - Port: - Proxy informations - Login: - Ok - Chat Call @@ -132,9 +122,6 @@ %s wants to add you to his/her buddy list. Do you want to authorize him/her ? Authorize buddy ? - - Not connected - You\'ve a new message @@ -156,9 +143,6 @@ Beem - User Info - Reset - Login - Save Create this account Create and use this account @@ -179,7 +163,6 @@ Settings Log in Connecting. Please wait... - Max retry Unfortunately, an error occured.\n\nError detail:\n%s Login diff -r 6c83317a3c84 -r 56d44e5c7081 src/com/beem/project/beem/BeemService.java --- a/src/com/beem/project/beem/BeemService.java Tue Jun 01 21:48:38 2010 +0200 +++ b/src/com/beem/project/beem/BeemService.java Thu Jun 03 21:43:32 2010 +0200 @@ -298,6 +298,15 @@ } /** + * Get the notification manager system service. + * + * @return the notification manager service. + */ + public NotificationManager getNotificationManager() { + return mNotificationManager; + } + + /** * A sort of patch from this thread: http://www.igniterealtime.org/community/thread/31118. Avoid ClassCastException * by bypassing the classloading shit of Smack. * @param pm The ProviderManager. @@ -434,10 +443,12 @@ if (intentAction.equals(Intent.ACTION_SCREEN_OFF)) { mOldMode = mConnection.getPreviousMode(); mOldStatus = mConnection.getPreviousStatus(); - mConnection.changeStatus(Status.CONTACT_STATUS_AWAY, - mSettings.getString("settings_away_message", "Away")); + if (mConnection.isAuthentificated()) + mConnection.changeStatus(Status.CONTACT_STATUS_AWAY, + mSettings.getString("settings_away_message", "Away")); } else if (intentAction.equals(Intent.ACTION_SCREEN_ON)) { - mConnection.changeStatus(mOldMode, mOldStatus); + if (mConnection.isAuthentificated()) + mConnection.changeStatus(mOldMode, mOldStatus); } } } diff -r 6c83317a3c84 -r 56d44e5c7081 src/com/beem/project/beem/service/XmppConnectionAdapter.java --- a/src/com/beem/project/beem/service/XmppConnectionAdapter.java Tue Jun 01 21:48:38 2010 +0200 +++ b/src/com/beem/project/beem/service/XmppConnectionAdapter.java Thu Jun 03 21:43:32 2010 +0200 @@ -339,7 +339,8 @@ mStatusNotification.setLatestEventInfo(mService, "Beem Status", text, PendingIntent.getActivity(mService, 0, new Intent(mService, ChangeStatus.class), 0)); - mService.sendNotification(BeemService.NOTIFICATION_STATUS_ID, mStatusNotification); + // bypass the preferences for notification + mService.getNotificationManager().notify(BeemService.NOTIFICATION_STATUS_ID, mStatusNotification); } /**