diff options
| author | Jim Miller <jaggies@google.com> | 2013-03-11 13:54:38 -0700 |
|---|---|---|
| committer | Jim Miller <jaggies@google.com> | 2013-03-11 13:57:12 -0700 |
| commit | f083324b42e165c1f4d194c41a1ec6ba6c09ee20 (patch) | |
| tree | b51b2e2497d667e1ce0805440bfb6b492954efaf /core/java/android/appwidget/AppWidgetHost.java | |
| parent | f2afddb57dfbcbe35ccbeb4d66bfff99eb3e4c65 (diff) | |
Remove unnecessary userid check
This removes code used to verify the userid's were consistent, which
is no longer needed.
Fixes bug 8167800
Change-Id: I592e4bc1158fb7775bd31ae8a26c1782b60f0fa0
Diffstat (limited to 'core/java/android/appwidget/AppWidgetHost.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 a470e704f0c4..f7933d389a2c 100644 --- a/core/java/android/appwidget/AppWidgetHost.java +++ b/core/java/android/appwidget/AppWidgetHost.java @@ -408,12 +408,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); @@ -424,7 +422,6 @@ public class AppWidgetHost { } void viewDataChanged(int appWidgetId, int viewId, int userId) { - checkUserMatch(userId); AppWidgetHostView v; synchronized (mViews) { v = mViews.get(appWidgetId); @@ -434,16 +431,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. */ |
