Adding notion of keyguard widgets
-> Persisting certain appwidget options -> Adding ability to specify appwidget options on bind so as to avoid AppWidgetProvider update call with no options. Change-Id: I5631039f19f1822b8e123b559b6353c880c0192e
This commit is contained in:
@@ -215,15 +215,18 @@ class AppWidgetService extends IAppWidgetService.Stub
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bindAppWidgetId(int appWidgetId, ComponentName provider) throws RemoteException {
|
||||
getImplForUser(UserHandle.getCallingUserId()).bindAppWidgetId(appWidgetId, provider);
|
||||
public void bindAppWidgetId(int appWidgetId, ComponentName provider, Bundle options)
|
||||
throws RemoteException {
|
||||
getImplForUser(UserHandle.getCallingUserId()).bindAppWidgetId(appWidgetId, provider,
|
||||
options);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean bindAppWidgetIdIfAllowed(
|
||||
String packageName, int appWidgetId, ComponentName provider) throws RemoteException {
|
||||
String packageName, int appWidgetId, ComponentName provider, Bundle options)
|
||||
throws RemoteException {
|
||||
return getImplForUser(UserHandle.getCallingUserId()).bindAppWidgetIdIfAllowed(
|
||||
packageName, appWidgetId, provider);
|
||||
packageName, appWidgetId, provider, options);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user