Fix settings crash

Fix settings crash when dialog is shown
becuase the wrong fragment manager is
used.

Bug: 264939770
Test: unit test and test on device
Change-Id: I5f4c04740058baaa1c96a7108dc4b08b3e467fb8
This commit is contained in:
Becca Hughes
2023-01-10 18:41:14 +00:00
parent 393e031cf8
commit e1608b369f
5 changed files with 20 additions and 49 deletions

View File

@@ -69,7 +69,7 @@ public class AccountWorkProfileDashboardFragment extends DashboardFragment {
if (CredentialManager.isServiceEnabled(context)) {
CredentialManagerPreferenceController cmpp =
use(CredentialManagerPreferenceController.class);
cmpp.setParentFragment(this);
cmpp.init(this, getFragmentManager());
}
getSettingsLifecycle().addObserver(use(PasswordsPreferenceController.class));