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, context,
decryptFileRequestCode++, decryptFileRequestCode++,
intent, intent,
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE, PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_MUTABLE,
) )
.intentSender .intentSender
} }

View File

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

View File

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

View File

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

View File

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

View File

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