mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-06 17:04:09 +02:00
app: add PendingIntent.FLAG_IMMUTABLE
flag where required
This commit is contained in:
parent
52c85ec6dc
commit
b8ce4f3145
|
@ -79,7 +79,7 @@ class AutofillDecryptActivity : AppCompatActivity() {
|
||||||
context,
|
context,
|
||||||
decryptFileRequestCode++,
|
decryptFileRequestCode++,
|
||||||
intent,
|
intent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT
|
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE,
|
||||||
)
|
)
|
||||||
.intentSender
|
.intentSender
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ class AutofillDecryptActivityV2 : AppCompatActivity() {
|
||||||
context,
|
context,
|
||||||
decryptFileRequestCode++,
|
decryptFileRequestCode++,
|
||||||
intent,
|
intent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT
|
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE,
|
||||||
)
|
)
|
||||||
.intentSender
|
.intentSender
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ class AutofillFilterView : AppCompatActivity() {
|
||||||
context,
|
context,
|
||||||
matchAndDecryptFileRequestCode++,
|
matchAndDecryptFileRequestCode++,
|
||||||
intent,
|
intent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT
|
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE,
|
||||||
)
|
)
|
||||||
.intentSender
|
.intentSender
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ class AutofillPublisherChangedActivity : AppCompatActivity() {
|
||||||
context,
|
context,
|
||||||
publisherChangedRequestCode++,
|
publisherChangedRequestCode++,
|
||||||
intent,
|
intent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT
|
PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE,
|
||||||
)
|
)
|
||||||
.intentSender
|
.intentSender
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,12 @@ fun makeInlinePresentation(
|
||||||
if (UiVersions.INLINE_UI_VERSION_1 !in UiVersions.getVersions(imeSpec.style)) return null
|
if (UiVersions.INLINE_UI_VERSION_1 !in UiVersions.getVersions(imeSpec.style)) return null
|
||||||
|
|
||||||
val launchIntent =
|
val launchIntent =
|
||||||
PendingIntent.getActivity(context, 0, Intent(context, PasswordStore::class.java), 0)
|
PendingIntent.getActivity(
|
||||||
|
context,
|
||||||
|
0,
|
||||||
|
Intent(context, PasswordStore::class.java),
|
||||||
|
PendingIntent.FLAG_IMMUTABLE
|
||||||
|
)
|
||||||
val slice =
|
val slice =
|
||||||
InlineSuggestionUi.newContentBuilder(launchIntent).run {
|
InlineSuggestionUi.newContentBuilder(launchIntent).run {
|
||||||
setTitle(metadata.title)
|
setTitle(metadata.title)
|
||||||
|
|
|
@ -115,7 +115,12 @@ class ClipboardService : Service() {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
PendingIntent.getForegroundService(this, 0, clearIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
PendingIntent.getForegroundService(this, 0, clearIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
||||||
} else {
|
} else {
|
||||||
PendingIntent.getService(this, 0, clearIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
PendingIntent.getService(
|
||||||
|
this,
|
||||||
|
0,
|
||||||
|
clearIntent,
|
||||||
|
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
|
||||||
|
)
|
||||||
}
|
}
|
||||||
val notification =
|
val notification =
|
||||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
|
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
|
||||||
|
|
Loading…
Reference in a new issue