diff options
| author | 2024-01-19 07:18:49 +0000 | |
|---|---|---|
| committer | 2024-01-19 07:59:32 +0000 | |
| commit | df15018f529037eb069ebb7c71db259e2c501a75 (patch) | |
| tree | 3281ec57be1951970ed7fe827d488d16887ad3cf | |
| parent | 02b61abcfe0874bc686d6ce5cba36cc4ec6f3222 (diff) | |
Preventing Intent Expiration for App Market Intent
With FLAG_ONE_SHOT set for pending intent, re-firing
the pending intent instance, without calling the API
again leads to no Activity being started.
Bug: 320664417
Test: Manual verification
Change-Id: I0a16151bff9dec71f6703c95614915d37aa93f8f
| -rw-r--r-- | services/core/java/com/android/server/pm/LauncherAppsService.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/pm/LauncherAppsService.java b/services/core/java/com/android/server/pm/LauncherAppsService.java index 991555495ad2..f2a20ad83ca1 100644 --- a/services/core/java/com/android/server/pm/LauncherAppsService.java +++ b/services/core/java/com/android/server/pm/LauncherAppsService.java @@ -1678,9 +1678,8 @@ public class LauncherAppsService extends SystemService { mContext, /* requestCode */ 0, intent, - PendingIntent.FLAG_ONE_SHOT - | PendingIntent.FLAG_IMMUTABLE - | PendingIntent.FLAG_CANCEL_CURRENT, + PendingIntent.FLAG_IMMUTABLE + | FLAG_UPDATE_CURRENT, /* options */ null, user); return pi == null ? null : pi.getIntentSender(); |