Fixing taskMenu and taskView clicks in fallback activity
> Extracting common methods from Launcher & DragLauncher to base classes > Remoting some dependencies on Launcher and using the base class instead Change-Id: I121cacf8a14190b4703cda60bdeb4f79eee69ded
This commit is contained in:
1 parent
39b5534b96
commit
0b0847b272
21 files changed
+749
-546
No files matched your search
@@ -22,7 +22,6 @@ import android.content.pm.PackageManager;
|
||||
import android.util.Log;
|
||||
|
||||
import com.android.launcher3.AppInfo;
|
||||
import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
|
||||
@@ -47,8 +46,8 @@ public class InstantAppResolver {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean isInstantApp(Launcher launcher, String packageName) {
|
||||
PackageManager packageManager = launcher.getPackageManager();
|
||||
public boolean isInstantApp(Context context, String packageName) {
|
||||
PackageManager packageManager = context.getPackageManager();
|
||||
try {
|
||||
return isInstantApp(packageManager.getPackageInfo(packageName, 0).applicationInfo);
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
|
||||
Reference in new issue
Block a user