mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 08:16:49 +00:00
Fixing shortcut intent getting cleared during backup/restore
Bug: 174570283 Bug: 156871815 Test: Verified on device Change-Id: Ie286ee783bfe96c5b2be28f0db5298caf3801e6d
This commit is contained in:
@@ -91,6 +91,14 @@ public class PackageManagerHelper {
|
||||
return info != null && isAppSuspended(info);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the target app is installed for a given user
|
||||
*/
|
||||
public boolean isAppInstalled(String packageName, UserHandle user) {
|
||||
ApplicationInfo info = getApplicationInfo(packageName, user, 0);
|
||||
return info != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the application info for the provided package or null
|
||||
*/
|
||||
@@ -105,7 +113,7 @@ public class PackageManagerHelper {
|
||||
}
|
||||
|
||||
public boolean isSafeMode() {
|
||||
return mContext.getPackageManager().isSafeMode();
|
||||
return mPm.isSafeMode();
|
||||
}
|
||||
|
||||
public Intent getAppLaunchIntent(String pkg, UserHandle user) {
|
||||
|
||||
Reference in New Issue
Block a user