OSDN Git Service

Fix regression in remote views.
authorSvet Ganov <svetoslavganov@google.com>
Wed, 6 Aug 2014 21:11:37 +0000 (14:11 -0700)
committerSvetoslav Ganov <svetoslavganov@google.com>
Thu, 7 Aug 2014 00:30:44 +0000 (00:30 +0000)
commit0da85b6c9073956b620c6a88b44027e9ee80066c
tree95989c7e6920028752fdcf03b63da5003fce19f7
parent5557e65b2076c7214c5ef8942f3a7fd8bc4bb6d0
Fix regression in remote views.

Now remote views contain the application info for the app on whose
behalf they should show content. The application info contains the
user id and the package name which makes it unique in the multi
user environment. If the app which creates the remote views does
not have the same package as the one passed in the contructor of
the remote views, we lookup the app info for the target package.
There is a special hidden overload that allows creating a remote
views instance that represents an app in given package and user
(requires interact across users) permission. The latter is used
by SystemUi when creating remote views for apps that posted a
notification.

bug:16838651

Change-Id: I2daa974629f89a2446848e59300d994dadcf4439
core/java/android/app/Notification.java
core/java/android/widget/RemoteViews.java