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

Commit 11a984a0 authored by Sunny Goyal's avatar Sunny Goyal Committed by Automerger Merge Worker
Browse files

Merge "Fixing work tab is not updated when work-mode changes" into tm-qpr-dev am: 3da648a8

parents 63a63996 3da648a8
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
@@ -239,12 +239,12 @@ public class AlphabeticalAppsList<T extends Context & ActivityContext> implement
            mAdapterItems.addAll(mSearchResults);
        } else {
            int position = 0;
            boolean addApps = true;
            if (mWorkProviderManager != null) {
                position += mWorkProviderManager.addWorkItems(mAdapterItems);
                if (!mWorkProviderManager.shouldShowWorkApps()) {
                    return;
                }
                addApps = mWorkProviderManager.shouldShowWorkApps();
            }
            if (addApps) {
                String lastSectionName = null;
                for (AppInfo info : mApps) {
                    mAdapterItems.add(AdapterItem.asApp(info));
@@ -258,6 +258,7 @@ public class AlphabeticalAppsList<T extends Context & ActivityContext> implement
                    position++;
                }
            }
        }
        mAccessibilityResultsCount = (int) mAdapterItems.stream()
                .filter(AdapterItem::isCountedForAccessibility).count();