Implement new keyboard settings UI.

Add enabled input method locales page
Add keyboard layout picker page
Add keyboard settings entry in BT device detail

Bug: 242680718
Test: local test
Change-Id: I07e068ecde553d394697b25cb573f806229f6f52
This commit is contained in:
danielwbhuang
2022-10-04 20:14:59 +08:00
parent d2378be135
commit 1639782df6
22 changed files with 898 additions and 20 deletions

View File

@@ -154,6 +154,7 @@ public class KeyboardLayoutPickerController extends BasePreferenceController imp
final SwitchPreference pref = new SwitchPreference(mScreen.getContext());
pref.setTitle(layout.getLabel());
pref.setSummary(layout.getCollection());
// TODO: Waiting for new API to use a prefix with special number to setKey
pref.setKey(layout.getDescriptor());
mScreen.addPreference(pref);
mPreferenceMap.put(pref, layout);