From f5767cf92851e50fcd12ebb22f9d165239222b2f Mon Sep 17 00:00:00 2001 From: Hyunyoung Song Date: Thu, 11 Mar 2021 00:26:42 -0800 Subject: [PATCH] Do not reset workprofile when on search result page Bug: 182443195 Test: Manual Change-Id: I2cb1d11949233273881dc9d387e68c9878d49096 --- src/com/android/launcher3/allapps/AllAppsContainerView.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index edd9a9f7ef..9ede94c43f 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -201,9 +201,9 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo } if (!mAH[AdapterHolder.MAIN].appsList.hasFilter()) { rebindAdapters(hasWorkApps); - } - if (hasWorkApps) { - resetWorkProfile(); + if (hasWorkApps) { + resetWorkProfile(); + } } }