Merge "Allow TIMEZONE_CHANGED to launch apps" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b84b8bd40d
@@ -1049,6 +1049,7 @@ class AlarmManagerService extends SystemService {
|
|||||||
if (timeZoneWasChanged) {
|
if (timeZoneWasChanged) {
|
||||||
Intent intent = new Intent(Intent.ACTION_TIMEZONE_CHANGED);
|
Intent intent = new Intent(Intent.ACTION_TIMEZONE_CHANGED);
|
||||||
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING
|
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING
|
||||||
|
| Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND
|
||||||
| Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS);
|
| Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS);
|
||||||
intent.putExtra("time-zone", zone.getID());
|
intent.putExtra("time-zone", zone.getID());
|
||||||
getContext().sendBroadcastAsUser(intent, UserHandle.ALL);
|
getContext().sendBroadcastAsUser(intent, UserHandle.ALL);
|
||||||
|
|||||||
Reference in New Issue
Block a user