update shortcut

This commit is contained in:
onlymash authored and seven332 committed 2018-03-29 19:30:58 +08:00
1 parent 00485efd0e
commit 91e9975a24
1 file changed
+2 -1
@@ -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));
}
}