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

Commit 771cec99 authored by Himanshu Gupta's avatar Himanshu Gupta
Browse files

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.
parent 742f7101
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -73,7 +73,7 @@ public class WorkProfileManager extends UserProfileManager
     * Posts quite mode enable/disable call for work profile user
     * Posts quite mode enable/disable call for work profile user
     */
     */
    public void setWorkProfileEnabled(boolean enabled) {
    public void setWorkProfileEnabled(boolean enabled) {
        setCurrentState(STATE_TRANSITION);
        updateCurrentState(STATE_TRANSITION);
        setQuietMode(!enabled);
        setQuietMode(!enabled);
    }
    }