Replacing hotseat icon to an appropriate system app
> During backupi, store the hotseat target app type, based on some predefined common system apps > During restore, save this app type in the restore flag, if it is a hotseat app > During first launcher load, if an app is not being restored, try to replace it with an appropriate replacement for that type, otherwise delete it. Bug: 18764649 Change-Id: Ic49e40bd707bd8d7de18bbab8b1e58a0a36426a2
This commit is contained in:
1 parent
3862e4d88b
commit
bb3b02f562
13 files changed
+491
-27
No files matched your search
@@ -112,7 +112,7 @@ public class AutoInstallsLayout {
|
||||
|
||||
private final Context mContext;
|
||||
private final AppWidgetHost mAppWidgetHost;
|
||||
private final LayoutParserCallback mCallback;
|
||||
protected final LayoutParserCallback mCallback;
|
||||
|
||||
protected final PackageManager mPackageManager;
|
||||
protected final Resources mSourceRes;
|
||||
@@ -122,13 +122,20 @@ public class AutoInstallsLayout {
|
||||
|
||||
private final long[] mTemp = new long[2];
|
||||
private final ContentValues mValues;
|
||||
private final String mRootTag;
|
||||
protected final String mRootTag;
|
||||
|
||||
protected SQLiteDatabase mDb;
|
||||
|
||||
public AutoInstallsLayout(Context context, AppWidgetHost appWidgetHost,
|
||||
LayoutParserCallback callback, Resources res,
|
||||
int layoutId, String rootTag) {
|
||||
this(context, appWidgetHost, callback, res, layoutId, rootTag,
|
||||
LauncherAppState.getInstance().getDynamicGrid().getDeviceProfile().hotseatAllAppsRank);
|
||||
}
|
||||
|
||||
public AutoInstallsLayout(Context context, AppWidgetHost appWidgetHost,
|
||||
LayoutParserCallback callback, Resources res,
|
||||
int layoutId, String rootTag, int hotseatAllAppsRank) {
|
||||
mContext = context;
|
||||
mAppWidgetHost = appWidgetHost;
|
||||
mCallback = callback;
|
||||
@@ -139,8 +146,7 @@ public class AutoInstallsLayout {
|
||||
|
||||
mSourceRes = res;
|
||||
mLayoutId = layoutId;
|
||||
mHotseatAllAppsRank = LauncherAppState.getInstance()
|
||||
.getDynamicGrid().getDeviceProfile().hotseatAllAppsRank;
|
||||
mHotseatAllAppsRank = hotseatAllAppsRank;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user