mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2026-04-19 18:20:47 +02:00
use apply rather than commit
This commit is contained in:
parent
83281a1d91
commit
533d7babfc
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue