diff options
| author | Kenny Guy <kennyguy@google.com> | 2014-09-02 12:11:07 +0100 |
|---|---|---|
| committer | Kenny Guy <kennyguy@google.com> | 2014-09-04 12:40:24 +0100 |
| commit | 879ebec4e2a12a802339549cb4fefa32b5368379 (patch) | |
| tree | 3b1faad86fa14b93253aa1ffc5a5176f072d95bc /core/java/android/widget/RemoteViews.java | |
| parent | 52c0f04cbcd9cb0d98d40b504256e2b3b110e6fc (diff) | |
Ensure all RemoteViews use myUserId rather than context.
Remote views may be inflated in another user so
explicitly use processes user id rather than the
user id of the context.
Bug: 17302505
Change-Id: I985c91745f03dd7e6b2ab6357600077664d8e6be
Diffstat (limited to 'core/java/android/widget/RemoteViews.java')
| -rw-r--r-- | core/java/android/widget/RemoteViews.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index 69d5f40802cc..9de69f24d079 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -1653,8 +1653,10 @@ public class RemoteViews implements Parcelable, Filter { * * @param application The application whose content is shown by the views. * @param layoutId The id of the layout resource. + * + * @hide */ - private RemoteViews(ApplicationInfo application, int layoutId) { + protected RemoteViews(ApplicationInfo application, int layoutId) { mApplication = application; mLayoutId = layoutId; mBitmapCache = new BitmapCache(); |
