From 2e14f7481fd30ce6a7ac33019dedb6ca9148f982 Mon Sep 17 00:00:00 2001 From: rmceoin Date: Sat, 24 Oct 2009 23:49:31 +0000 Subject: [PATCH] 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 --- src/org/openintents/safe/CategoryList.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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); -- 2.50.1