mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 21:58:52 +02:00
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user