Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Work on issue #25467052: System lagged out
Browse files Browse the repository at this point in the history
Use REPLACE_PENDING when sending change broadcasts for the calendar
provider, so they don't cause backup in the queue.

Change-Id: Iab92c4a48a3e1ff085246e5ebc16fefae927133b
  • Loading branch information
Dianne Hackborn authored and The Android Automerger committed Nov 5, 2015
1 parent 350bdf9 commit 5d19871
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/android/providers/calendar/CalendarProvider2.java
Original file line number Diff line number Diff line change
Expand Up @@ -4584,6 +4584,7 @@ private void sendUpdateNotification(long eventId,
private void doSendUpdateNotification() {
Intent intent = new Intent(Intent.ACTION_PROVIDER_CHANGED,
CalendarContract.CONTENT_URI);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
if (Log.isLoggable(TAG, Log.INFO)) {
Log.i(TAG, "Sending notification intent: " + intent);
}
Expand Down

0 comments on commit 5d19871

Please sign in to comment.