aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-03-17 18:40:27 +0100
committerMohamed Zenadi <mohamed@zenadi.com>2015-03-17 18:41:32 +0100
commitb90e15bf3a78de901368184171bd307ade59c7c9 (patch)
treec50a04d2da83f47d2d47f300961b79bca889b598 /app
parenta91f264eaf94dc1c59b39b157d6f6b8500cd305d (diff)
temp fix for welcome screen showing for everybody
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/PasswordStore.java4
1 files changed, 2 insertions, 2 deletions
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) {