Loading services/core/java/com/android/server/AlarmManagerService.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1837,7 +1837,8 @@ class AlarmManagerService extends SystemService { } } Intent intent = new Intent(Intent.ACTION_TIME_CHANGED); Intent intent = new Intent(Intent.ACTION_TIME_CHANGED); intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING | Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); | Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT | Intent.FLAG_RECEIVER_FOREGROUND); getContext().sendBroadcastAsUser(intent, UserHandle.ALL); getContext().sendBroadcastAsUser(intent, UserHandle.ALL); } } Loading Loading
services/core/java/com/android/server/AlarmManagerService.java +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1837,7 +1837,8 @@ class AlarmManagerService extends SystemService { } } Intent intent = new Intent(Intent.ACTION_TIME_CHANGED); Intent intent = new Intent(Intent.ACTION_TIME_CHANGED); intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING | Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); | Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT | Intent.FLAG_RECEIVER_FOREGROUND); getContext().sendBroadcastAsUser(intent, UserHandle.ALL); getContext().sendBroadcastAsUser(intent, UserHandle.ALL); } } Loading