From: rmceoin Date: Sat, 24 Oct 2009 23:49:31 +0000 (+0000) Subject: OI Safe: corrected prepopulation of Categories for first time X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=2e14f7481fd30ce6a7ac33019dedb6ca9148f982;p=android-vcpass-oisafe OI Safe: corrected prepopulation of Categories for first time git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@2347 72b678ce-9140-0410-bee8-679b907dd61a --- diff --git a/src/org/openintents/safe/CategoryList.java b/src/org/openintents/safe/CategoryList.java index 18b5c01..faf01b0 100644 --- a/src/org/openintents/safe/CategoryList.java +++ b/src/org/openintents/safe/CategoryList.java @@ -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);