Skip to content

Commit

Permalink
Utils: Don't export CalendarBroadcastReceiver
Browse files Browse the repository at this point in the history
  • Loading branch information
theimpulson committed Oct 9, 2023
1 parent 2bbf31b commit 6d83135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/android/calendar/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6d83135

Please sign in to comment.