From d36ed7d982aaa8f682df408548bb5aadb666a066 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 20 Jun 2017 21:03:20 -0700 Subject: [PATCH] Adding utility method to find an app from a component key Change-Id: I445b512f29a0a45910c523f2f905c0a9e3c241f1 --- src/com/android/launcher3/allapps/AlphabeticalAppsList.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/launcher3/allapps/AlphabeticalAppsList.java b/src/com/android/launcher3/allapps/AlphabeticalAppsList.java index b84c6276a2..7bf66510ad 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.