]> hydra-www.ietfng.org Git - android-vcpass-oisafe/commitdiff
OI Safe: corrected prepopulation of Categories for first time
authorrmceoin <rmceoin@72b678ce-9140-0410-bee8-679b907dd61a>
Sat, 24 Oct 2009 23:49:31 +0000 (23:49 +0000)
committerrmceoin <rmceoin@72b678ce-9140-0410-bee8-679b907dd61a>
Sat, 24 Oct 2009 23:49:31 +0000 (23:49 +0000)
git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@2347 72b678ce-9140-0410-bee8-679b907dd61a

src/org/openintents/safe/CategoryList.java

index 18b5c0190b0a72eccd60e18e52c32560895e4839..faf01b071b0b93347513fad4b55091c87d64243a 100644 (file)
@@ -208,12 +208,6 @@ public class CategoryList extends ListActivity {
                        getResources().getString(R.string.categories);
                setTitle(title);
 
-               if (Passwords.getPrePopulate()==true)
-               {
-                       prePopulate();
-                       Passwords.clearPrePopulate();
-               }
-               
         IntentFilter filter = new IntentFilter();
         filter.addAction(Intent.ACTION_SCREEN_OFF);
         filter.addAction (CryptoIntents.ACTION_CRYPTO_LOGGED_OUT);
@@ -241,6 +235,12 @@ public class CategoryList extends ListActivity {
         registerReceiver(mIntentReceiver, filter);
 
         showFirstTimeWarningDialog();
+               if (Passwords.getPrePopulate()==true)
+               {
+                       prePopulate();
+                       Passwords.clearPrePopulate();
+               }
+
                SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
                lockOnScreenLock = sp.getBoolean(Preferences.PREFERENCE_LOCK_ON_SCREEN_LOCK, true);