mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 14:55:19 +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
|
//TODO Handle the diffent cases of exceptions
|
||||||
}
|
}
|
||||||
|
|
||||||
sharedPreferences.edit().putBoolean("repository_initialized", false).commit();
|
sharedPreferences.edit().putBoolean("repository_initialized", false).apply();
|
||||||
dialogInterface.cancel();
|
dialogInterface.cancel();
|
||||||
callingActivity.finish();
|
callingActivity.finish();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user