mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-16 03:31:02 -04:00
Boot receiver action check added
This commit is contained in:
@@ -13,6 +13,9 @@ public class BootReceiver extends BroadcastReceiver {
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (!Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
|
||||
return;
|
||||
}
|
||||
Intent checkerIntent = new Intent(context, UpdateChecker.class);
|
||||
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, checkerIntent, 0);
|
||||
AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
|
||||
|
||||
Reference in New Issue
Block a user