Alienating QSB

> Moving all QSB widget handling code in a separate package
> QSB is handled on a separate host, independent of the main
host. This allows us to safely reset either of the two hosts
> Also removing the logic around closeSystemDialog:
   Launcher does not use any panels which need closing
   System sends an onActivityResult(RESULT_CANCELLED), we do
   not need special handling for waitingForResult
> Fixing bug when auto-generated qsb widget id was not being saved

Change-Id: I2d889b7b1c80b14785d14f35624142a4b78452de
This commit is contained in:
Sunny Goyal
2016-10-07 16:17:19 -07:00
parent d2959b9ee7
commit 2e013ea7f6
9 changed files with 181 additions and 139 deletions

View File

@@ -63,8 +63,6 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView implements Touc
@ViewDebug.ExportedProperty(category = "launcher")
private boolean mChildrenFocused;
protected int mErrorViewId = R.layout.appwidget_error;
private boolean mIsAttachedToWindow;
private boolean mIsAutoAdvanceRegistered;
private Runnable mAutoAdvanceRunnable;
@@ -81,7 +79,7 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView implements Touc
@Override
protected View getErrorView() {
return mInflater.inflate(mErrorViewId, this, false);
return mInflater.inflate(R.layout.appwidget_error, this, false);
}
public void updateLastInflationOrientation() {