diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-06-20 21:03:20 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-06-20 21:03:36 -0700 |
commit | d36ed7d982aaa8f682df408548bb5aadb666a066 (patch) | |
tree | 3cf54d5c3ca3c4f1282d09a69cce91d61e0cd67a /src/com/android/launcher3/allapps | |
parent | 990b319bf7747c395176df2cd2de5cd4b48f5663 (diff) | |
download | android_packages_apps_Trebuchet-d36ed7d982aaa8f682df408548bb5aadb666a066.tar.gz android_packages_apps_Trebuchet-d36ed7d982aaa8f682df408548bb5aadb666a066.tar.bz2 android_packages_apps_Trebuchet-d36ed7d982aaa8f682df408548bb5aadb666a066.zip |
Adding utility method to find an app from a component key
Change-Id: I445b512f29a0a45910c523f2f905c0a9e3c241f1
Diffstat (limited to 'src/com/android/launcher3/allapps')
-rw-r--r-- | src/com/android/launcher3/allapps/AlphabeticalAppsList.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java index b84c6276a..7bf66510a 100644 --- a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java +++ b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java @@ -621,6 +621,10 @@ public class AlphabeticalAppsList { return result; } + public AppInfo findApp(ComponentKey key) { + return mComponentToAppMap.get(key); + } + /** * Returns the cached section name for the given title, recomputing and updating the cache if * the title has no cached section name. |