From 91e9975a244a10dedd582b9b56d4c876760148c9 Mon Sep 17 00:00:00 2001 From: onlymash Date: Wed, 28 Mar 2018 14:45:34 +0800 Subject: [PATCH] update shortcut --- .../java/com/hippo/ehviewer/shortcuts/ShortcutsActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/hippo/ehviewer/shortcuts/ShortcutsActivity.java b/app/src/main/java/com/hippo/ehviewer/shortcuts/ShortcutsActivity.java index 9c45b1b63..2987bde1e 100644 --- a/app/src/main/java/com/hippo/ehviewer/shortcuts/ShortcutsActivity.java +++ b/app/src/main/java/com/hippo/ehviewer/shortcuts/ShortcutsActivity.java @@ -34,7 +34,8 @@ public class ShortcutsActivity extends Activity{ Intent intent = getIntent(); if (intent != null){ action = intent.getAction(); - if (action != null){ + if (action != null && (action.equals(DownloadService.ACTION_START_ALL) || + action.equals(DownloadService.ACTION_STOP_ALL))){ startService(new Intent(this, DownloadService.class).setAction(action)); } }