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

Commit d96a716f authored by Achim Thesmann's avatar Achim Thesmann Committed by Android (Google) Code Review
Browse files

Merge "Allow RemoteViews to start Activities via PI"

parents f02c39a6 cbef1ced
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6717,6 +6717,10 @@ public class RemoteViews implements Parcelable, Filter {
                Log.w(LOG_TAG, "getLaunchOptions: view.getDisplay() is null!",
                        new Exception());
            }
            // If the user interacts with a visible element it is safe to assume they consent that
            // something is going to start.
            opts.setPendingIntentBackgroundActivityStartMode(
                    ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
            return Pair.create(intent, opts);
        }
    }