From 6d83135a82e84f282cbc662943747d40e370b271 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 10 Oct 2023 00:28:11 +0530 Subject: [PATCH] Utils: Don't export CalendarBroadcastReceiver * Ref: https://developer.android.com/about/versions/14/behavior-changes-14#runtime-receivers-exported Signed-off-by: Aayush Gupta --- app/src/main/java/com/android/calendar/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/android/calendar/Utils.java b/app/src/main/java/com/android/calendar/Utils.java index 6595877c3..d6ab80a2b 100644 --- a/app/src/main/java/com/android/calendar/Utils.java +++ b/app/src/main/java/com/android/calendar/Utils.java @@ -1787,7 +1787,7 @@ public static BroadcastReceiver setTimeChangesReceiver(Context c, Runnable callb filter.addAction(Intent.ACTION_LOCALE_CHANGED); CalendarBroadcastReceiver r = new CalendarBroadcastReceiver(callback); - c.registerReceiver(r, filter); + ContextCompat.registerReceiver(c, r, filter, ContextCompat.RECEIVER_NOT_EXPORTED); return r; }