app: make Autofill intents mutable (#1682)

Fixes: b8ce4f314538 ("app: add `PendingIntent.FLAG_IMMUTABLE` flag where required")
This commit is contained in:
Harsh Shandilya 2022-01-24 09:07:49 +05:30 committed by GitHub
parent d838b7da59
commit dba86c2a53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -79,7 +79,7 @@ class AutofillDecryptActivity : AppCompatActivity() {
context,
decryptFileRequestCode++,
intent,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE,
)
.intentSender
}

View file

@ -67,7 +67,7 @@ class AutofillDecryptActivityV2 : AppCompatActivity() {
context,
decryptFileRequestCode++,
intent,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE,
)
.intentSender
}

View file

@ -74,7 +74,7 @@ class AutofillFilterView : AppCompatActivity() {
context,
matchAndDecryptFileRequestCode++,
intent,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE,
)
.intentSender
}

View file

@ -54,7 +54,7 @@ class AutofillPublisherChangedActivity : AppCompatActivity() {
context,
publisherChangedRequestCode++,
intent,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE,
)
.intentSender
}

View file

@ -56,7 +56,7 @@ fun makeInlinePresentation(
context,
0,
Intent(context, PasswordStore::class.java),
PendingIntent.FLAG_IMMUTABLE
PendingIntent.FLAG_MUTABLE
)
val slice =
InlineSuggestionUi.newContentBuilder(launchIntent).run {

View file

@ -119,7 +119,7 @@ class ClipboardService : Service() {
this,
0,
clearIntent,
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_MUTABLE
)
}
val notification =