From 0336216f20f7c06719f4c8cbd6da274063fc3285 Mon Sep 17 00:00:00 2001 From: Vaibhav Devmurari Date: Mon, 8 Jan 2024 13:36:46 +0000 Subject: [PATCH] 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 --- .../ProfileSelectPhysicalKeyboardFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/settings/dashboard/profileselector/ProfileSelectPhysicalKeyboardFragment.java b/src/com/android/settings/dashboard/profileselector/ProfileSelectPhysicalKeyboardFragment.java index 239d6098331..2caf8dba5dd 100644 --- a/src/com/android/settings/dashboard/profileselector/ProfileSelectPhysicalKeyboardFragment.java +++ b/src/com/android/settings/dashboard/profileselector/ProfileSelectPhysicalKeyboardFragment.java @@ -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);