diff options
author | Mohamed Zenadi <mohamed@zenadi.com> | 2015-06-09 23:53:45 +0200 |
---|---|---|
committer | Mohamed Zenadi <mohamed@zenadi.com> | 2015-06-09 23:54:20 +0200 |
commit | 533d7babfc499c7db8402be69833de8a878fd145 (patch) | |
tree | 2f287aae69c55b590566e168f2e4a7f297da81b1 | |
parent | 83281a1d914ef7e8d4d55be073607835ad4355d1 (diff) |
use apply rather than commit
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/UserPreference.java | 2 |
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(); } |