Skip to content
Commit 18cc8e14 authored by John Wu's avatar John Wu Committed by Android Build Coastguard Worker
Browse files

Use setIdentifier instead of dynamic categories

Change I27987301ebf393de6f781b17ed7bc789789c01ab introduced the usage of
dynamic categories to prevent the pending intent from being cached. This
is incompatible with the new T explicit intent filter enforcement, as a
dynamic category can never match any intent-filter.

Switch to use the PendingIntent#setIdentifier API introduced in API 29,
specifically designed for this use case.

Bug: 249043995
Test: m + manual
Change-Id: I2bbe4e554ef337299138f2a7691eeffc60e18e9d
(cherry picked from commit 8afc387e)
Merged-In: I2bbe4e554ef337299138f2a7691eeffc60e18e9d
parent 5bb0b520
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment