From b90e15bf3a78de901368184171bd307ade59c7c9 Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Tue, 17 Mar 2015 18:40:27 +0100 Subject: temp fix for welcome screen showing for everybody --- app/src/main/java/com/zeapo/pwdstore/PasswordStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java index 073c24da..e979baf5 100644 --- a/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java +++ b/app/src/main/java/com/zeapo/pwdstore/PasswordStore.java @@ -277,8 +277,8 @@ public class PasswordStore extends ActionBarActivity { FragmentManager fragmentManager = getFragmentManager(); FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); - - if (settings.getBoolean("repository_initialized", false)) { + // TODO: Remove the getpaswords() as it is a temporary fix until every user has the repository_initialized set + if (settings.getBoolean("repository_initialized", false) || PasswordRepository.getPasswords(localDir).size() > 0) { // do not push the fragment if we already have it if (fragmentManager.findFragmentByTag("PasswordsList") == null) { -- cgit v1.2.3