Merge "Relaunch the account page after removing a work account" into tm-dev am: 346a40a6f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17910931 Change-Id: I6944c307eba807fc351a0acd404edac6ddd1e22b Ignore-AOSP-First: this is an automerge Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user