Merge "Restrict alarm broadcast" into oc-mr1-dev am: 3b0fc6bd38
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14103469 Change-Id: I2a933b691bfc17ed88f60e21c1083bc947d5b329
This commit is contained in:
@@ -4811,6 +4811,7 @@ public class NotificationManagerService extends SystemService {
|
||||
final PendingIntent pi = PendingIntent.getBroadcast(getContext(),
|
||||
REQUEST_CODE_TIMEOUT,
|
||||
new Intent(ACTION_NOTIFICATION_TIMEOUT)
|
||||
.setPackage("android")
|
||||
.setData(new Uri.Builder().scheme(SCHEME_TIMEOUT)
|
||||
.appendPath(record.getKey()).build())
|
||||
.addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
|
||||
|
||||
Reference in New Issue
Block a user