Fix bug in credential manager settings (dialogs)

The dialogs crash when opened because they
need to be public so they can be recreated.

Bug: 253157366
Test: make & manual test
Change-Id: I5ad8d5e49be7c0f926b9d4e3383109aae398925b
This commit is contained in:
Becca Hughes
2023-01-03 22:57:06 +00:00
parent 36903136af
commit 38fface579

View File

@@ -415,7 +415,7 @@ public class CredentialManagerPreferenceController extends BasePreferenceControl
}
/** Dialog showing error when too many providers are selected. */
private static class ErrorDialogFragment extends CredentialManagerDialogFragment {
public static class ErrorDialogFragment extends CredentialManagerDialogFragment {
ErrorDialogFragment(DialogHost dialogHost) {
super(dialogHost);
@@ -438,7 +438,7 @@ public class CredentialManagerPreferenceController extends BasePreferenceControl
* Confirmation dialog fragment shows a dialog to the user to confirm that they are disabling a
* provider.
*/
private static class ConfirmationDialogFragment extends CredentialManagerDialogFragment {
public static class ConfirmationDialogFragment extends CredentialManagerDialogFragment {
ConfirmationDialogFragment(
DialogHost dialogHost, @NonNull String packageName, @NonNull CharSequence appName) {