Make pendingintent use immutable flag
It will be required for S+ that every PendingIntent be declared mutable or immutable. Fixes: 173742612 Test: manual Change-Id: Ib6ec27dfb32edbc3156e65d0485b4714490d3020
This commit is contained in:
@@ -478,7 +478,7 @@ class ControlsControllerImpl @Inject constructor (
|
||||
val pendingIntent = PendingIntent.getActivity(context,
|
||||
componentName.hashCode(),
|
||||
intent,
|
||||
0)
|
||||
PendingIntent.FLAG_IMMUTABLE)
|
||||
val control = Control.StatelessBuilder(controlInfo.controlId, pendingIntent)
|
||||
.setTitle(controlInfo.controlTitle)
|
||||
.setSubtitle(controlInfo.controlSubtitle)
|
||||
|
||||
Reference in New Issue
Block a user