From 9be24d7408b41a5c96b5128fbedc9dd6b9cd96b1 Mon Sep 17 00:00:00 2001 From: Mygod Date: Tue, 24 May 2016 11:39:43 +0800 Subject: [PATCH] Use SharedPreference.Editor.apply instead of commit --- .../scala/com/github/shadowsocks/ProfileManagerActivity.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/github/shadowsocks/ProfileManagerActivity.scala b/src/main/scala/com/github/shadowsocks/ProfileManagerActivity.scala index 430a9f1e..aed81bca 100644 --- a/src/main/scala/com/github/shadowsocks/ProfileManagerActivity.scala +++ b/src/main/scala/com/github/shadowsocks/ProfileManagerActivity.scala @@ -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 }