mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Moving come helper methods to corresponding classes
> Moving isPackageEnabled to InstallShortcutReceiver > Moving the deep shortcut map to the data model > Removing appInfo.flags. Instead fetching the flags when needed Change-Id: I654dd8acefa7b7d183b0419afbe112bef001d536
This commit is contained in:
@@ -226,7 +226,8 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
String packageName = pendingInfo.getTargetPackage();
|
||||
if (!TextUtils.isEmpty(packageName)) {
|
||||
UserHandleCompat myUserHandle = UserHandleCompat.myUserHandle();
|
||||
if (!LauncherModel.isValidPackage(context, packageName, myUserHandle)) {
|
||||
if (!LauncherAppsCompat.getInstance(context)
|
||||
.isPackageEnabledForProfile(packageName, myUserHandle)) {
|
||||
if (DBG) Log.d(TAG, "Ignoring shortcut for absent package: "
|
||||
+ pendingInfo.launchIntent);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user