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

Commit 346a40a6 authored by Jason Chiu's avatar Jason Chiu Committed by Android (Google) Code Review
Browse files

Merge "Relaunch the account page after removing a work account" into tm-dev

parents 564c8848 9c1a1cb8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -623,6 +623,12 @@ public class AccountPreferenceController extends AbstractPreferenceController
            if (action.equals(Intent.ACTION_MANAGED_PROFILE_REMOVED)
                    || action.equals(Intent.ACTION_MANAGED_PROFILE_ADDED)) {
                if (mFragment instanceof AccountWorkProfileDashboardFragment) {
                    new SubSettingLauncher(context)
                            .setDestination(AccountDashboardFragment.class.getName())
                            .setSourceMetricsCategory(mFragment.getMetricsCategory())
                            .setTitleRes(-1)
                            .setIsSecondLayerPage(true)
                            .launch();
                    mFragment.getActivity().finish();
                } else {
                    // Clean old state