Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed961d90 authored by Christopher Tate's avatar Christopher Tate
Browse files

Set flags on the correct Intent, please

Bug: 65115426
Test: passes CTS backup suite
Change-Id: I497d077f563fef7b0800df626d15651c721d4ca7
parent 16da1f54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1315,7 +1315,7 @@ public class BackupManagerService implements BackupManagerServiceInterface {
        mRunBackupIntent = PendingIntent.getBroadcast(context, MSG_RUN_BACKUP, backupIntent, 0);
        Intent initIntent = new Intent(RUN_INITIALIZE_ACTION);
        backupIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
        initIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
        mRunInitIntent = PendingIntent.getBroadcast(context, 0, initIntent, 0);
        // Set up the backup-request journaling
+1 −1
Original line number Diff line number Diff line
@@ -750,7 +750,7 @@ public class RefactoredBackupManagerService implements BackupManagerServiceInter
        mRunBackupIntent = PendingIntent.getBroadcast(context, 0, backupIntent, 0);

        Intent initIntent = new Intent(RUN_INITIALIZE_ACTION);
        backupIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
        initIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
        mRunInitIntent = PendingIntent.getBroadcast(context, 0, initIntent, 0);

        // Set up the backup-request journaling