Created LauncherWidgetHolder as a wrapper for LauncherAppWidgetHost
The wrapper class is created for further changes that will run the wrapped host in the background. Test: N/A Bug: 235358918 Change-Id: I9bd6fc2749c5d4a4d3391fb75d0c3ff1e13d17bf
This commit is contained in:
@@ -55,7 +55,7 @@ public class WidgetAddFlowHandler implements Parcelable {
|
||||
|
||||
public void startBindFlow(Launcher launcher, int appWidgetId, ItemInfo info, int requestCode) {
|
||||
launcher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(appWidgetId, this, info));
|
||||
launcher.getAppWidgetHost()
|
||||
launcher.getAppWidgetHolder()
|
||||
.startBindFlow(launcher, appWidgetId, mProviderInfo, requestCode);
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public class WidgetAddFlowHandler implements Parcelable {
|
||||
return false;
|
||||
}
|
||||
launcher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(appWidgetId, this, info));
|
||||
launcher.getAppWidgetHost().startConfigActivity(launcher, appWidgetId, requestCode);
|
||||
launcher.getAppWidgetHolder().startConfigActivity(launcher, appWidgetId, requestCode);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user