Fix broken PK setting page

Culprit CL: ag/24940191, the InputDeviceIdentifier wasn't properly passed onto the Profile specific instances of PK settings fragment.

Bug: 317416208
Test: manual
Change-Id: I8431cc6c220cc313ea7a7b1931d2a5a88fa46797
This commit is contained in:
Vaibhav Devmurari
2024-01-08 13:36:46 +00:00
parent 315f2546fc
commit 0336216f20

View File

@@ -51,9 +51,11 @@ public final class ProfileSelectPhysicalKeyboardFragment extends ProfileSelectFr
@Override
public Fragment[] getFragments() {
Bundle bundle = new Bundle();
bundle.putParcelable(Settings.EXTRA_INPUT_DEVICE_IDENTIFIER, mInputDeviceIdentifier);
return ProfileSelectFragment.getFragments(
getContext(),
null /* bundle */,
bundle,
NewKeyboardLayoutEnabledLocalesFragment::new,
NewKeyboardLayoutEnabledLocalesFragment::new,
NewKeyboardLayoutEnabledLocalesFragment::new);