diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-11-04 12:37:10 -0800 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2015-11-04 17:03:03 -0800 |
commit | 5d19871f605f7fd08d632556d210ea30893815c9 (patch) | |
tree | 1c99eac9079ea442e196c21d4d7e16b3b7e3e3cf | |
parent | 350bdf916ba93f0318a5c3b0cbd2c9794c748c80 (diff) | |
download | android_packages_providers_CalendarProvider-5d19871f605f7fd08d632556d210ea30893815c9.tar.gz android_packages_providers_CalendarProvider-5d19871f605f7fd08d632556d210ea30893815c9.tar.bz2 android_packages_providers_CalendarProvider-5d19871f605f7fd08d632556d210ea30893815c9.zip |
Work on issue #25467052: System lagged out
Use REPLACE_PENDING when sending change broadcasts for the calendar
provider, so they don't cause backup in the queue.
Change-Id: Iab92c4a48a3e1ff085246e5ebc16fefae927133b
-rw-r--r-- | src/com/android/providers/calendar/CalendarProvider2.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/providers/calendar/CalendarProvider2.java b/src/com/android/providers/calendar/CalendarProvider2.java index 888600e..d51480a 100644 --- a/src/com/android/providers/calendar/CalendarProvider2.java +++ b/src/com/android/providers/calendar/CalendarProvider2.java @@ -4584,6 +4584,7 @@ public class CalendarProvider2 extends SQLiteContentProvider implements OnAccoun 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); } |