# HG changeset patch # User Philippe Lago # Date 1257532697 -3600 # Node ID 3c83d2e2c4788b4d137653a82239309f26d55bd0 # Parent 7ac6af9ceb0dd14fba80596a2caeade62f40b335 Merge diff -r 7ac6af9ceb0d -r 3c83d2e2c478 default.properties --- a/default.properties Fri Nov 06 19:28:02 2009 +0100 +++ b/default.properties Fri Nov 06 19:38:17 2009 +0100 @@ -7,16 +7,8 @@ # "build.properties", and override values to adapt the script to your # project structure. +# Indicates whether an apk should be generated for each density. +split.density=false # Project target. target=android-3 -# apk configurations. This property allows creation of APK files with limited -# resources. For example, if your application contains many locales and -# you wish to release multiple smaller apks instead of a large one, you can -# define configuration to create apks with limited language sets. -# Format is a comma separated list of configuration names. For each -# configuration, a property will declare the resource configurations to -# include. Example: -# apk-configurations=european,northamerica -# apk-config-european=en,fr,it,de,es -# apk-config-northamerica=en,es apk-configurations= diff -r 7ac6af9ceb0d -r 3c83d2e2c478 res/layout/preferences.xml --- a/res/layout/preferences.xml Fri Nov 06 19:28:02 2009 +0100 +++ b/res/layout/preferences.xml Fri Nov 06 19:38:17 2009 +0100 @@ -1,72 +1,167 @@ - - - - - - + + + + + + + + + + + + + + + + + - - - - - - + android:summary="@string/SettingsGmail" + android:key="settings_key_gmail" /> + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + diff -r 7ac6af9ceb0d -r 3c83d2e2c478 res/values-fr/strings.xml --- a/res/values-fr/strings.xml Fri Nov 06 19:28:02 2009 +0100 +++ b/res/values-fr/strings.xml Fri Nov 06 19:38:17 2009 +0100 @@ -78,25 +78,25 @@ Rien à changer - Permet la modification de votre identifiant de connexion - Permet la modification de votre mot de passe + Saisissez votre identifiant de connexion + Saisissez votre mot de passe Utilisation de Gmail - Cochez cette case si vous souhaitez utiliser votre compte Gmail - Beem - Paramètres - Proxy + Cochez cette option si vous souhaitez utiliser votre compte Gmail + Proxy Utiliser un proxy - Cochez cette case si vous souhaitez utiliser un serveur proxy + Connectez vous à travers un serveur proxy Protocole Permet de choisir le type de proxy à utiliser - Définition de l'adresse du serveur. - Définition du port du serveur. - Optionnel, permet de s'authentifier sur le proxy - Optionnel, permet de s'authentifier sur le proxy - Beem - Paramètres - Options avancées + Saisissez l\'adresse du serveur proxy + Saisissez le numéro de port du serveur proxy + Optionnel, permet de s\'authentifier sur le proxy + Optionnel, permet de s\'authentifier sur le proxy + Options avancées Modifier le délai de reconnexion Options spécifiques - Cochez cette case si vous souhaitez utiliser un serveur spécifique pour votre connexion - Permet d'éditer l'adresse du serveur - Permet d'éditer le port du serveur + Cochez cette option pour utiliser un serveur spécifique + Saisissez l\'adresse du serveur à joindre + Saisissez le port du serveur Inscription acceptée @@ -170,7 +170,7 @@ Se connecter Les paramètres ont été enregistrés avec succès. beem_settings - Délai de reconnexion + beem_account_username beem_account_password beem_xmpp_server @@ -182,7 +182,15 @@ beem_xmpp_proxy_username beem_xmpp_proxy_password beem_xmpp_proxy_type + settings_key_hidden_contact + + Préférences de l\'application + Utilisateur + Options réseau + Paramètres du proxy + Identifiant proxy + edit_settings_tab_account Compte @@ -191,18 +199,29 @@ edit_settings_tab_proxy Proxy + + Liste d\'ami(e)s + Une série d\'options d\'affichage de votre liste d\'ami(e)s + Caché(e)s + Cochez cette option pour cacher les ami(e)s déconnecté(e)s + Nom d\'utilisateur Mot de passe Serveur Port - + + Comportement du service + Une série d\'options pour les utilisateurs avertis Serveur Port Utiliser SSL/TLS + Délai de reconnexion + + Paramètrez un serveur proxy Utiliser un proxy Choisir un type de proxy Serveur diff -r 7ac6af9ceb0d -r 3c83d2e2c478 res/values/strings.xml --- a/res/values/strings.xml Fri Nov 06 19:28:02 2009 +0100 +++ b/res/values/strings.xml Fri Nov 06 19:38:17 2009 +0100 @@ -78,25 +78,25 @@ Nothing to change - Modify my username - Modify my password + Edit your username + Edit your password Using Gmail Use my Gmail account Proxy Use a proxy server - Check this box if you\'re behind a proxy server + Login through a proxy server Protocol Choose the proxy server type - Address definition of the proxy server - Port definition of the proxy server + Edit proxy server address + Edit proxy server port Optional, allow to authenticate yourself on the proxy server Optional, allow to authenticate yourself on the proxy server Advanced - Use specific server option + Specific server option Modify reconnection delay Check this box if you want to use a specific server for your connection - Allow to edit the server address - Allow to edit the server port + Edit the server address + Edit the server port Subscription accepted @@ -116,14 +116,8 @@ Accept contact request Accept contact request from - - - + Beem - Login Activity Beem - Settings Beem - EditSettings Activity @@ -133,20 +127,14 @@ Beem - ContactList Activity Beem - User Info - - + Reset Login Save Create this account Create and log - - - + + Username Password Login - Error @@ -164,15 +152,13 @@ Connecting. Please wait... Max retry Unfortunately, an error occured.\n\nError detail:\n%s - - + + Create an account Login The settings have been saved successfully. beem_settings - Reconnection delay + beem_account_username beem_account_password beem_xmpp_server @@ -184,27 +170,45 @@ beem_xmpp_proxy_username beem_xmpp_proxy_password beem_xmpp_proxy_type + settings_key_hidden_contact - + + General preferences + User settings + Network options + Proxy settings + Proxy settings + + edit_settings_tab_account Account edit_settings_tab_xmpp XMPP edit_settings_tab_proxy Proxy - + + + Buddy list + A set of display options for your buddy list + Hidden + Check this option to hide unconnected buddies + Username Password Server Port - - - Server + + + Service behaviour + A set of options for advanced users + Address Port Require SSL/TLS - + Reconnection delay + + Settings for proxy usage Connect using a proxy Choose a type of proxy Server @@ -212,9 +216,7 @@ Username Password - + Create an account - Instructions Create an account - Error Change my settings @@ -226,27 +228,23 @@ Password Confirm password - + Add a contact Settings All contacts No group - + Alias Manage groups Resend invit Block Delete Suscription resend - Are you sure you want to delete this contact? + Are you sure you want to delete this contact ? Yes No - Are you sure you want to resend invit? + Are you sure you want to resend invit ? Beem - Chat Type your message diff -r 7ac6af9ceb0d -r 3c83d2e2c478 src/com/beem/project/beem/ui/ContactList.java --- a/src/com/beem/project/beem/ui/ContactList.java Fri Nov 06 19:28:02 2009 +0100 +++ b/src/com/beem/project/beem/ui/ContactList.java Fri Nov 06 19:38:17 2009 +0100 @@ -15,6 +15,7 @@ import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; +import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; @@ -23,6 +24,7 @@ import android.os.Handler; import android.os.IBinder; import android.os.RemoteException; +import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; @@ -53,6 +55,7 @@ public class ContactList extends Activity { //private static final String TAG = "CONTACTLIST_ACT"; + private static final boolean DEFAULT_BOOLEAN_VALUE = false; private static final Intent SERVICE_INTENT = new Intent(); private static final int REQUEST_CODE = 1; private BeemContactList mAdapterContactList; @@ -64,6 +67,7 @@ private String mCurGroup; private Handler mHandler; private IXmppFacade mXmppFacade; + private SharedPreferences mSettings; private final ServiceConnection mServConn = new BeemServiceConnection(); private BeemBroadcastReceiver mReceiver; private Map mIconsMap = new HashMap(); @@ -85,6 +89,7 @@ @Override protected void onCreate(Bundle saveBundle) { super.onCreate(saveBundle); + mSettings = getSharedPreferences(getString(R.string.settings_filename), MODE_PRIVATE); setContentView(R.layout.contactlist); mAdapterContactList = new BeemContactList(this); mAdapterBanner = new BeemBanner(this); @@ -301,6 +306,11 @@ /** * Prepare Bitmap Map. */ + + private boolean getRegisteredContactHidden() { + return mSettings.getBoolean(getString(R.string.settings_key_hidden_contact), DEFAULT_BOOLEAN_VALUE); + } + private void prepareIconsStatus(){ mIconsMap.put(Status.CONTACT_STATUS_AVAILABLE, BitmapFactory.decodeResource(getResources(), R.drawable.status_available)); mIconsMap.put(Status.CONTACT_STATUS_AVAILABLE_FOR_CHAT, BitmapFactory.decodeResource(getResources(), R.drawable.status_available)); @@ -642,10 +652,10 @@ for (String s : tmpGroupList) { List tmpList = new ArrayList(); for (Contact c : tmpContactList) { - if (c.getGroups().size() == 0 && !tmpNoGroup.contains(c)) - tmpNoGroup.add(c); - else if (c.getGroups().contains(s)) - tmpList.add(c); + if (c.getGroups().size() == 0 && !tmpNoGroup.contains(c)) + tmpNoGroup.add(c); + else if (c.getGroups().contains(s)) + tmpList.add(c); } mContactOnGroup.put(s, tmpList); }