Add a mutability flag to the PendingIntent in SearchView.java
It is now required to specify an explicit mutability flag when creating PendingIntents. This change adds an explicit FLAG_MUTABLE to a PendingIntent in SearchView.java. Since the previous default behavior was mutable, and the flag I have added is FLAG_MUTABLE, this change should be a no-op functionally. Bug: 170770665 Test: TH Change-Id: Ib6d4f95f64430d8b187560614b97bac961a129c5
This commit is contained in:
@@ -1695,7 +1695,7 @@ public class SearchView extends LinearLayout implements CollapsibleActionView {
|
||||
Intent queryIntent = new Intent(Intent.ACTION_SEARCH);
|
||||
queryIntent.setComponent(searchActivity);
|
||||
PendingIntent pending = PendingIntent.getActivity(getContext(), 0, queryIntent,
|
||||
PendingIntent.FLAG_ONE_SHOT);
|
||||
PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_MUTABLE);
|
||||
|
||||
// Now set up the bundle that will be inserted into the pending intent
|
||||
// when it's time to do the search. We always build it here (even if empty)
|
||||
|
||||
Reference in New Issue
Block a user