Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df15018f authored by Himanshu Gupta's avatar Himanshu Gupta
Browse files

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
parent 02b61abc
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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();