From 9e4a9bc777d5db3ecdf038c75d53396b17f1f218 Mon Sep 17 00:00:00 2001 From: Samuel Fufa Date: Wed, 12 May 2021 14:43:46 -0500 Subject: [PATCH] [WorkProfile] Fix Work profile switch synchronization Bug: 185566696 Bug: 185557440 Test: Manual Change-Id: Ie9c94c6daee233d299aa63dc5bcb258a37c321e4 --- src/com/android/launcher3/allapps/AllAppsContainerView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index b11b63ed69..63aac53a51 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -439,7 +439,7 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo R.layout.work_mode_switch, this, false); this.addView(mWorkModeSwitch); mWorkModeSwitch.setInsets(mInsets); - mWorkModeSwitch.post(() -> mAH[AdapterHolder.WORK].applyPadding()); + mWorkModeSwitch.post(this::resetWorkProfile); } }