mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fixing backup restore
> Not deleting icons from cache, which have not been restored yet > Not checking if activity exists during DB migration. Missing components are removed during loader anyway > Backing up and restoring bitmaps even when iconType is resource. This allows us to show a proper bitmap icon, until the correct resource is available. > Loading proper shortcutResource icon for promiseIcons > Checking against promise intent when verifying duplicates > A launcher App intent can contain EXTRA_PROFILE Bug: 22094970 Change-Id: I982971338846733833ec133119393af0bea0eb08
This commit is contained in:
@@ -432,10 +432,4 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
.fromResolveInfo(info, original.mContext);
|
||||
return new PendingInstallShortcutInfo(launcherInfo, original.mContext);
|
||||
}
|
||||
|
||||
public static boolean isLauncherActivity(Intent intent, Context context) {
|
||||
Intent data = new Intent().putExtra(Intent.EXTRA_SHORTCUT_INTENT, intent);
|
||||
PendingInstallShortcutInfo info = new PendingInstallShortcutInfo(data, context);
|
||||
return convertToLauncherActivityIfPossible(info).isLuncherActivity();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user