Revert "Move boot to app"

This reverts commit 6629ad4273.
This commit is contained in:
M66B
2020-12-31 11:29:02 +01:00
parent 5856762748
commit 69ed0b6344
2 changed files with 9 additions and 9 deletions

View File

@@ -26,12 +26,16 @@ import android.content.Intent;
public class ReceiverAutoStart extends BroadcastReceiver {
@Override
public void onReceive(final Context context, Intent intent) {
Log.i("Received " + intent);
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction()) ||
Intent.ACTION_MY_PACKAGE_REPLACED.equals(intent.getAction())) {
Log.i("Received " + intent);
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction()))
; // handled by Application
if (Intent.ACTION_MY_PACKAGE_REPLACED.equals(intent.getAction()))
ApplicationEx.upgrade(context);
if (Intent.ACTION_MY_PACKAGE_REPLACED.equals(intent.getAction()))
ApplicationEx.upgrade(context);
ServiceSynchronize.boot(context);
ServiceSend.boot(context);
ServiceUI.boot(context);
}
}
}