Use SharedPreference.Editor.apply instead of commit

This commit is contained in:
Mygod
2016-05-24 11:39:43 +08:00
parent 28ea9dd807
commit 9be24d7408
@@ -234,7 +234,7 @@ final class ProfileManagerActivity extends AppCompatActivity with OnMenuItemClic
})
if (app.settings.getBoolean(Key.profileTip, true)) {
app.editor.putBoolean(Key.profileTip, false).commit
app.editor.putBoolean(Key.profileTip, false).apply
new AlertDialog.Builder(this).setTitle(R.string.profile_manager_dialog)
.setMessage(R.string.profile_manager_dialog_content).setPositiveButton(R.string.gotcha, null).create.show
}