From 39999cf0263d0568337a87d0e586dcafd9e22ba1 Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Wed, 16 Jul 2014 15:12:03 -0700 Subject: Allow adding widgets from user profiles. The goal of this change is to enable support for appwidget from user profiles to the user main profile. A user profile is a user which is associated as a child of the main user profile. For example, a user may have a personal (parent) and corporate (child) profile. The device policy should be able to control whether adding a widget from a child profile and given packages is allowed. This change assumes that all packages from managed profiles are white listed. Another change will add the device policy changes. (cherrypicked 8cd27c3c to work around Gerrit issue) Change-Id: I267260b55d74c48b112a29979a9f59eef7a8194e --- cmds/appwidget/src/com/android/commands/appwidget/AppWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds/appwidget/src') diff --git a/cmds/appwidget/src/com/android/commands/appwidget/AppWidget.java b/cmds/appwidget/src/com/android/commands/appwidget/AppWidget.java index dd45d397884c..5ea73528e2d8 100644 --- a/cmds/appwidget/src/com/android/commands/appwidget/AppWidget.java +++ b/cmds/appwidget/src/com/android/commands/appwidget/AppWidget.java @@ -150,7 +150,7 @@ public class AppWidget { IBinder binder = ServiceManager.getService(Context.APPWIDGET_SERVICE); IAppWidgetService appWidgetService = IAppWidgetService.Stub.asInterface(binder); try { - appWidgetService.setBindAppWidgetPermission(mPackageName, mGranted, mUserId); + appWidgetService.setBindAppWidgetPermission(mPackageName, mUserId, mGranted); } catch (RemoteException re) { re.printStackTrace(); } -- cgit v1.2.3-59-g8ed1b