diff options
author | Jim Miller <jaggies@google.com> | 2013-03-11 23:02:47 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-03-11 23:02:47 +0000 |
commit | ab80d007dea56b9ddee7d8f9a701c2223b0ae871 (patch) | |
tree | 7dac05b1383aa35a6bfd88a436e7997e7eec76a7 /core/java | |
parent | bb709246f3a7d8a460aa8b1b5d2b90180802ba53 (diff) | |
parent | 33c05985102ea9a357263bba8e6a3789d20f6ba7 (diff) | |
download | frameworks_base-ab80d007dea56b9ddee7d8f9a701c2223b0ae871.zip frameworks_base-ab80d007dea56b9ddee7d8f9a701c2223b0ae871.tar.gz frameworks_base-ab80d007dea56b9ddee7d8f9a701c2223b0ae871.tar.bz2 |
am 33c05985: am e70748e7: Merge "Remove unnecessary userid check" into jb-mr2-dev
* commit '33c05985102ea9a357263bba8e6a3789d20f6ba7':
Remove unnecessary userid check
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/appwidget/AppWidgetHost.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/java/android/appwidget/AppWidgetHost.java b/core/java/android/appwidget/AppWidgetHost.java index 37f20c9..523dbff 100644 --- a/core/java/android/appwidget/AppWidgetHost.java +++ b/core/java/android/appwidget/AppWidgetHost.java @@ -404,12 +404,10 @@ public class AppWidgetHost { * @hide */ protected void onProvidersChanged(int userId) { - checkUserMatch(userId); // Does nothing } void updateAppWidgetView(int appWidgetId, RemoteViews views, int userId) { - checkUserMatch(userId); AppWidgetHostView v; synchronized (mViews) { v = mViews.get(appWidgetId); @@ -420,7 +418,6 @@ public class AppWidgetHost { } void viewDataChanged(int appWidgetId, int viewId, int userId) { - checkUserMatch(userId); AppWidgetHostView v; synchronized (mViews) { v = mViews.get(appWidgetId); @@ -430,16 +427,6 @@ public class AppWidgetHost { } } - // Ensure that the userId passed to us agrees with the one associated with this instance - // of AppWidgetHost. - // TODO: This should be removed in production code. - private void checkUserMatch(int userId) { - if (userId != mContext.getUserId()) { - throw new IllegalStateException( - "User ids don't match, userId=" + userId + ", mUserId=" + mContext.getUserId()); - } - } - /** * Clear the list of Views that have been created by this AppWidgetHost. */ |