Merge "Restrict alarm broadcast" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3b0fc6bd38
@@ -4036,6 +4036,7 @@ public class NotificationManagerService extends SystemService {
|
|||||||
final PendingIntent pi = PendingIntent.getBroadcast(getContext(),
|
final PendingIntent pi = PendingIntent.getBroadcast(getContext(),
|
||||||
REQUEST_CODE_TIMEOUT,
|
REQUEST_CODE_TIMEOUT,
|
||||||
new Intent(ACTION_NOTIFICATION_TIMEOUT)
|
new Intent(ACTION_NOTIFICATION_TIMEOUT)
|
||||||
|
.setPackage("android")
|
||||||
.setData(new Uri.Builder().scheme(SCHEME_TIMEOUT)
|
.setData(new Uri.Builder().scheme(SCHEME_TIMEOUT)
|
||||||
.appendPath(record.getKey()).build())
|
.appendPath(record.getKey()).build())
|
||||||
.addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
|
.addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
|
||||||
|
|||||||
Reference in New Issue
Block a user