diff options
author | Artem Shvadskiy <ashvadskiy@cyngn.com> | 2016-01-08 12:48:25 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-01-13 11:06:31 -0800 |
commit | 3c30f3ec6006c429e8751c0d0dfe7631fb161005 (patch) | |
tree | 5c8400c0a874200eb65d8f988c742fb6c205ceaa /src/com/android/launcher3/AppInfo.java | |
parent | d0cb9ae5d52de004ac0e326d5fbe9feb66c2c98c (diff) | |
download | android_packages_apps_Trebuchet-3c30f3ec6006c429e8751c0d0dfe7631fb161005.tar.gz android_packages_apps_Trebuchet-3c30f3ec6006c429e8751c0d0dfe7631fb161005.tar.bz2 android_packages_apps_Trebuchet-3c30f3ec6006c429e8751c0d0dfe7631fb161005.zip |
Implement placeholder icons for remote folder.
Patch 1: Unfinished temporary commit before rebase.
Patch 2: Rebase.
Patch 3:
1. Add additional RemoteFolderManager hook for drawer adapter setApps().
2. Replace method arguments in drawer adapter from ArrayList to List,
which allows us to use Collections.singletonList(), which is more memory
efficient.
3. Allow folders to batch remove a subset of their entries.
4. Remove unused remote flag in ShortcutInfo.
Patch 4: Fix placeholder animation for folder and folder icon.
Patch 5: Remove unused import.
Patch 6: Move app drawer bg color to overlay.
Change-Id: I5ae3b976e2d04dcfbe5ea2e563ef94dcae48b7d4
issue-id: CYNGNOS-1329
Diffstat (limited to 'src/com/android/launcher3/AppInfo.java')
-rw-r--r-- | src/com/android/launcher3/AppInfo.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/com/android/launcher3/AppInfo.java b/src/com/android/launcher3/AppInfo.java index 907b42cd9..d14b0e086 100644 --- a/src/com/android/launcher3/AppInfo.java +++ b/src/com/android/launcher3/AppInfo.java @@ -93,16 +93,13 @@ public class AppInfo extends ItemInfo { this.user = user; } - public AppInfo(Intent intent, String title, Bitmap icon, UserHandleCompat user, - boolean remote) { + public AppInfo(Intent intent, String title, UserHandleCompat user) { this.componentName = intent.getComponent(); this.container = ItemInfo.NO_ID; this.intent = intent; this.title = title; - iconBitmap = icon; this.user = user; - flags = remote ? REMOTE_APP_FLAG : 0; } public static int initFlags(LauncherActivityInfoCompat info) { @@ -150,6 +147,14 @@ public class AppInfo extends ItemInfo { return (flags & flag) != 0; } + /** + * Set a flag for this app + * @param flag flag to apply. + */ + public void setFlag(int flag) { + flags |= flag; + } + @Override public String toString() { return "ApplicationInfo(title=" + title.toString() + " id=" + this.id |