Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f36803a authored by Andrew Cole's avatar Andrew Cole Committed by Android (Google) Code Review
Browse files

Merge "Sort Apps During setApps" into main

parents 4a9ffb02 8def461a
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -93,8 +93,11 @@ public class AllAppsStore<T extends Context & ActivityContext> {
     * Sets the current set of apps and sets mapping for {@link PackageUserKey} to Uid for
     * the current set of apps.
     *
     * <p> Note that shouldPreinflate param should be set to {@code false} for taskbar, because this
     * method is too late to preinflate all apps, as user will open all apps in the same frame.
     * <p> Note that shouldPreinflate param should be set to {@code false} for taskbar, because
     * this method is too late to preinflate all apps, as user will open all apps in the frame
     *
     * <p>Param: apps are required to be sorted using the comparator COMPONENT_KEY_COMPARATOR
     * in order to enable binary search on the mApps store
     */
    public void setApps(@Nullable AppInfo[] apps, int flags, Map<PackageUserKey, Integer> map,
            boolean shouldPreinflate) {