Revert "Do not show the redundant RemoveAccountFailureDialog"

This reverts commit e5f1d24913.

Reason for revert: "Remove account" does nothing and shows no errors
Fix: 232819214

Change-Id: I4a4e5084cde87ea2a9e5be1ff3ca6709e11ebc3d
This commit is contained in:
Jason Chiu
2022-06-09 07:18:07 +00:00
parent 7d634de3ea
commit 7f1ff1b796

View File

@@ -180,10 +180,11 @@ public class RemoveAccountPreferenceController extends AbstractPreferenceControl
| AuthenticatorException e) { | AuthenticatorException e) {
// handled below // handled below
Log.w(TAG, "Remove account error: " + e); Log.w(TAG, "Remove account error: " + e);
RemoveAccountFailureDialog.show(getTargetFragment());
} }
Log.i(TAG, "failed: " + failed); Log.i(TAG, "failed: " + failed);
if (!failed) { if (failed) {
RemoveAccountFailureDialog.show(getTargetFragment());
} else {
targetActivity.finish(); targetActivity.finish();
} }
}, null, mUserHandle); }, null, mUserHandle);