summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/UserPreference.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
index e143c57c..437333ac 100644
--- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
+++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
@@ -108,7 +108,7 @@ public class UserPreference extends AppCompatActivity {
//TODO Handle the diffent cases of exceptions
}
- sharedPreferences.edit().putBoolean("repository_initialized", false).commit();
+ sharedPreferences.edit().putBoolean("repository_initialized", false).apply();
dialogInterface.cancel();
callingActivity.finish();
}