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

Commit 996801cf authored by Myles Watson's avatar Myles Watson Committed by Gerrit Code Review
Browse files

Merge "SAP: Mark the PendingIntents with FLAG_IMMUTABLE"

parents 6aaf1023 d2ca973d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -730,7 +730,8 @@ public class SapService extends ProfileService {
        cancelUserTimeoutAlarm();
        mRemoveTimeoutMsg = true;
        Intent timeoutIntent = new Intent(USER_CONFIRM_TIMEOUT_ACTION);
        PendingIntent pIntent = PendingIntent.getBroadcast(this, 0, timeoutIntent, 0);
        PendingIntent pIntent = PendingIntent.getBroadcast(this, 0, timeoutIntent,
                PendingIntent.FLAG_IMMUTABLE);
        mAlarmManager.set(AlarmManager.RTC_WAKEUP,
                System.currentTimeMillis() + USER_CONFIRM_TIMEOUT_VALUE, pIntent);
    }
@@ -744,7 +745,8 @@ public class SapService extends ProfileService {
        }
        if (mRemoveTimeoutMsg) {
            Intent timeoutIntent = new Intent(USER_CONFIRM_TIMEOUT_ACTION);
            PendingIntent sender = PendingIntent.getBroadcast(this, 0, timeoutIntent, 0);
            PendingIntent sender = PendingIntent.getBroadcast(this, 0, timeoutIntent,
                    PendingIntent.FLAG_IMMUTABLE);
            mAlarmManager.cancel(sender);
            mRemoveTimeoutMsg = false;
        }