From 956443ef2837e382d709586685608ce14bc9d5e9 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 12 Dec 2017 23:45:22 -0800 Subject: [PATCH] Fix the shortcut #1481 --- .../main/java/com/github/shadowsocks/QuickToggleShortcut.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/main/java/com/github/shadowsocks/QuickToggleShortcut.kt b/mobile/src/main/java/com/github/shadowsocks/QuickToggleShortcut.kt index e850259e..d60d03d0 100644 --- a/mobile/src/main/java/com/github/shadowsocks/QuickToggleShortcut.kt +++ b/mobile/src/main/java/com/github/shadowsocks/QuickToggleShortcut.kt @@ -34,8 +34,8 @@ import com.github.shadowsocks.aidl.IShadowsocksService import com.github.shadowsocks.bg.BaseService class QuickToggleShortcut : Activity(), ShadowsocksConnection.Interface { - override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) { - super.onCreate(savedInstanceState, persistentState) + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) if (intent.action == Intent.ACTION_CREATE_SHORTCUT) { setResult(Activity.RESULT_OK, ShortcutManagerCompat.createShortcutResultIntent(this, ShortcutInfoCompat.Builder(this, "toggle")