Skip to content

Commit

Permalink
Add FLAG_IMMUTABLE to PendingIntent in LegacyModeSmsHandler.
Browse files Browse the repository at this point in the history
Bug: 185126549, 185126319
Test: manual.

Merged-In: I1024353434674f8e4bf164c3a6c1e16924dfaa8f
Change-Id: I3b015de3187f45096235313e8d39a3c3f1b768b7
  • Loading branch information
Varun Berry committed Nov 5, 2021
1 parent ae8d63a commit bdd6d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/com/android/voicemail/impl/sms/LegacyModeSmsHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private static void sendLegacyVoicemailNotification(
context,
CallIntentBuilder.forVoicemail(
phoneAccountHandle, CallInitiationType.Type.LEGACY_VOICEMAIL_NOTIFICATION)),
PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
} else {
Intent launchVoicemailSettingsIntent =
new Intent(TelephonyManager.ACTION_CONFIGURE_VOICEMAIL);
Expand All @@ -112,7 +112,7 @@ private static void sendLegacyVoicemailNotification(
context,
LAUNCH_VOICEMAIL_SETTINGS_REQUEST_CODE,
launchVoicemailSettingsIntent,
PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
}

intent.putExtra(TelephonyManager.EXTRA_VOICEMAIL_NUMBER, voicemailNumber);
Expand Down

0 comments on commit bdd6d1e

Please sign in to comment.