summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-01-17 11:34:57 -0800
committerJohn Reck <jreck@google.com>2011-01-17 11:34:57 -0800
commit21e24aba311914670f75ee05fda9430c89a0ccbe (patch)
tree9fe593ecc99fff031f8fef76efc8ed19756a056c /src/com/android
parent1d676b6d3080ea2e8206e2a601be8390f1bbd0ed (diff)
downloadpackages_apps_Browser-21e24aba311914670f75ee05fda9430c89a0ccbe.tar.gz
packages_apps_Browser-21e24aba311914670f75ee05fda9430c89a0ccbe.tar.bz2
packages_apps_Browser-21e24aba311914670f75ee05fda9430c89a0ccbe.zip
Use UPDATE_CURRENT pending intent in widget
Instead of using FLAG_CANCEL_CURRENT, use FLAG_UPDATE_CURRENT in the widget provider for the browser shortcut. That way we never accidentally invalidate a previously set PendingIntent during partial updates. Change-Id: Iafd9f70c90046ffede31feee085d5e8109b6208b
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/widget/BookmarkThumbnailWidgetProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/widget/BookmarkThumbnailWidgetProvider.java b/src/com/android/browser/widget/BookmarkThumbnailWidgetProvider.java
index 1388b1c4f..6604a5fcd 100644
--- a/src/com/android/browser/widget/BookmarkThumbnailWidgetProvider.java
+++ b/src/com/android/browser/widget/BookmarkThumbnailWidgetProvider.java
@@ -82,7 +82,7 @@ public class BookmarkThumbnailWidgetProvider extends AppWidgetProvider {
PendingIntent launchBrowser = PendingIntent.getActivity(context, 0,
new Intent(BrowserActivity.ACTION_SHOW_BROWSER, null, context,
BrowserActivity.class),
- PendingIntent.FLAG_CANCEL_CURRENT);
+ PendingIntent.FLAG_UPDATE_CURRENT);
for (int appWidgetId : appWidgetIds) {
Intent updateIntent = new Intent(context, BookmarkThumbnailWidgetService.class);
updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);