mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 06:15:48 +00:00
use apply rather than commit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user