Separating apps list callback from model callback and simplifying various events
Bug: 137568159 Change-Id: I4d8bb5c01cabe642731ebd3f57fe15bdc5a569b7
This commit is contained in:
1 parent
b33dc7d8fb
commit
87dcde6d6c
23 files changed
+210
-265
No files matched your search
@@ -29,11 +29,19 @@ import com.android.launcher3.compat.UserManagerCompat;
|
||||
import com.android.launcher3.util.ComponentKey;
|
||||
import com.android.launcher3.util.PackageManagerHelper;
|
||||
|
||||
import java.util.Comparator;
|
||||
|
||||
/**
|
||||
* Represents an app in AllAppsView.
|
||||
*/
|
||||
public class AppInfo extends ItemInfoWithIcon {
|
||||
|
||||
public static AppInfo[] EMPTY_ARRAY = new AppInfo[0];
|
||||
public static Comparator<AppInfo> COMPONENT_KEY_COMPARATOR = (a, b) -> {
|
||||
int uc = a.user.hashCode() - b.user.hashCode();
|
||||
return uc != 0 ? uc : a.componentName.compareTo(b.componentName);
|
||||
};
|
||||
|
||||
/**
|
||||
* The intent used to start the application.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user