From 771cec99b91b116d650e9e5e29a0dd52ec96b9b3 Mon Sep 17 00:00:00 2001 From: Himanshu Gupta Date: Sun, 3 Mar 2024 21:56:15 +0000 Subject: [PATCH] Revert Accidental tweak of work profile behaviour Context: In ag/25247534, while setting the `STATE_TRANSITION`, `updateCurrentState` was replaced accidentaly with `setCurrentState`. As a result, View is not updated to show work apps in paused mode, immediately after the click (as `AlphabeticalAppsList#updateAdapterItems()` is no longer called . This change fixes the same. Bug: 327950935 Change-Id: I263129ff35f45cb5dc6f95db4ed51335f15dbf6f Test: Manual flash and work profile creation. --- src/com/android/launcher3/allapps/WorkProfileManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/allapps/WorkProfileManager.java b/src/com/android/launcher3/allapps/WorkProfileManager.java index a54e52c905..96998a3e38 100644 --- a/src/com/android/launcher3/allapps/WorkProfileManager.java +++ b/src/com/android/launcher3/allapps/WorkProfileManager.java @@ -73,7 +73,7 @@ public class WorkProfileManager extends UserProfileManager * Posts quite mode enable/disable call for work profile user */ public void setWorkProfileEnabled(boolean enabled) { - setCurrentState(STATE_TRANSITION); + updateCurrentState(STATE_TRANSITION); setQuietMode(!enabled); }