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.
This commit is contained in:
Himanshu Gupta committed 2024-03-03 21:56:23 +00:00
1 parent 742f710168
commit 771cec99b9
1 file changed
+1 -1
@@ -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);
}