Merge "Fixed the IllegalStateException on removing account"

This commit is contained in:
TreeHugger Robot
2019-05-31 03:04:48 +00:00
committed by Android (Google) Code Review

View File

@@ -191,7 +191,11 @@ public class RemoveAccountPreferenceController extends AbstractPreferenceControl
} }
final RemoveAccountFailureDialog dialog = new RemoveAccountFailureDialog(); final RemoveAccountFailureDialog dialog = new RemoveAccountFailureDialog();
dialog.setTargetFragment(parent, 0); dialog.setTargetFragment(parent, 0);
dialog.show(parent.getFragmentManager(), FAILED_REMOVAL_DIALOG); try {
dialog.show(parent.getFragmentManager(), FAILED_REMOVAL_DIALOG);
} catch (IllegalStateException e) {
Log.w(TAG, "Can't show RemoveAccountFailureDialog. " + e.getMessage());
}
} }
@Override @Override