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:
Matt Pietal
2020-11-20 10:43:16 -05:00
parent 676369c4d4
commit 618c64f66c

View File

@@ -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)