diff options
author | Winson Chung <winsonc@google.com> | 2011-12-05 14:56:29 -0800 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-12-06 14:21:10 -0800 |
commit | c3f581b0474a216938810885f4f606e0db1f21ff (patch) | |
tree | 065a4f8a4c8598c43dd92da25d7416ce114a233c /core | |
parent | 3124e6f9e96b730cdfbbf068f15c41b6d5c8a819 (diff) | |
download | frameworks_base-c3f581b0474a216938810885f4f606e0db1f21ff.zip frameworks_base-c3f581b0474a216938810885f4f606e0db1f21ff.tar.gz frameworks_base-c3f581b0474a216938810885f4f606e0db1f21ff.tar.bz2 |
Workaround for issue where the notifyDatasetChanged call chain is broken when Launcher is killed. (Bug 5703782)
Change-Id: Ic57a7ce85f41d58cd40b7d30eef4a1bf685182e5
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/widget/RemoteViewsService.java | 3 | ||||
-rw-r--r-- | core/java/com/android/internal/widget/IRemoteViewsFactory.aidl | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/RemoteViewsService.java b/core/java/android/widget/RemoteViewsService.java index 7ba4777..07bd918 100644 --- a/core/java/android/widget/RemoteViewsService.java +++ b/core/java/android/widget/RemoteViewsService.java @@ -145,6 +145,9 @@ public abstract class RemoteViewsService extends Service { Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); } } + public synchronized void onDataSetChangedAsync() { + onDataSetChanged(); + } public synchronized int getCount() { int count = 0; try { diff --git a/core/java/com/android/internal/widget/IRemoteViewsFactory.aidl b/core/java/com/android/internal/widget/IRemoteViewsFactory.aidl index 18076c4..7317ecf 100644 --- a/core/java/com/android/internal/widget/IRemoteViewsFactory.aidl +++ b/core/java/com/android/internal/widget/IRemoteViewsFactory.aidl @@ -22,6 +22,7 @@ import android.widget.RemoteViews; /** {@hide} */ interface IRemoteViewsFactory { void onDataSetChanged(); + oneway void onDataSetChangedAsync(); oneway void onDestroy(in Intent intent); int getCount(); RemoteViews getViewAt(int position); |