[app] log when receiving BOOT_COMPLETED

This commit is contained in:
Torsten Grote
2024-02-06 17:53:11 -03:00
parent 936f4497b4
commit 052bda7e25

View File

@@ -21,6 +21,7 @@ package org.fdroid.fdroid.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import org.fdroid.fdroid.UpdateService;
import org.fdroid.fdroid.Utils;
@@ -31,6 +32,7 @@ public class StartupReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context ctx, Intent intent) {
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
Log.e(TAG, "Received ACTION_BOOT_COMPLETED intent, scheduling update!!!");
UpdateService.schedule(ctx);
} else {
Utils.debugLog(TAG, "received unsupported Intent " + intent);