Commit 9be24d74 authored by Mygod's avatar Mygod

Use SharedPreference.Editor.apply instead of commit

parent 28ea9dd8
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment