Remove unnecessary BroadcastReceiver

This commit is contained in:
topjohnwu
2019-01-30 17:54:25 -05:00
parent 262185046a
commit 6c4d082f35
6 changed files with 29 additions and 40 deletions
@@ -7,7 +7,7 @@ import android.text.TextUtils;
import com.topjohnwu.magisk.components.BaseActivity;
import com.topjohnwu.magisk.components.Notifications;
import com.topjohnwu.magisk.receivers.ShortcutReceiver;
import com.topjohnwu.magisk.components.Shortcuts;
import com.topjohnwu.magisk.tasks.CheckUpdates;
import com.topjohnwu.magisk.tasks.UpdateRepos;
import com.topjohnwu.magisk.utils.AppUtils;
@@ -54,7 +54,7 @@ public class SplashActivity extends BaseActivity {
AppUtils.scheduleUpdateCheck();
// Setup shortcuts
sendBroadcast(new Intent(this, ClassMap.get(ShortcutReceiver.class)));
Shortcuts.setup(this);
if (Networking.checkNetworkStatus(this)) {
// Fire update check