diff options
author | Samuel Fufa <sfufa@google.com> | 2019-08-09 16:16:06 -0700 |
---|---|---|
committer | Samuel Fufa <sfufa@google.com> | 2019-08-13 23:57:11 +0000 |
commit | 866ff00eb39826b41515755703a0d0279d31c47f (patch) | |
tree | b4e5d50c3a3d7a985ee76c1a11cecc00c071a3bf /src/com/android/launcher3/AppInfo.java | |
parent | 237441a2b46afb1baeacdf4766a407f8c4537f1b (diff) | |
download | android_packages_apps_Trebuchet-866ff00eb39826b41515755703a0d0279d31c47f.tar.gz android_packages_apps_Trebuchet-866ff00eb39826b41515755703a0d0279d31c47f.tar.bz2 android_packages_apps_Trebuchet-866ff00eb39826b41515755703a0d0279d31c47f.zip |
Add a "Dismiss" option for predicted apps in Launcher
Test: LongPress on a pridicted app to see dismiss options.
Bug:139020180
Change-Id: I877863c65def0d845c0ae2f0987fe7a4f6277565
Diffstat (limited to 'src/com/android/launcher3/AppInfo.java')
-rw-r--r-- | src/com/android/launcher3/AppInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/AppInfo.java b/src/com/android/launcher3/AppInfo.java index a132d0444..c8e7619c7 100644 --- a/src/com/android/launcher3/AppInfo.java +++ b/src/com/android/launcher3/AppInfo.java @@ -85,6 +85,8 @@ public class AppInfo extends ItemInfoWithIcon { componentName = info.componentName; title = Utilities.trim(info.title); intent = new Intent(info.intent); + user = info.user; + runtimeStatusFlags = info.runtimeStatusFlags; } @Override @@ -127,4 +129,9 @@ public class AppInfo extends ItemInfoWithIcon { info.runtimeStatusFlags |= FLAG_ADAPTIVE_ICON; } } + + @Override + public AppInfo clone() { + return new AppInfo(this); + } } |