Add subtext for default keyboard layout.

Bug: 27742933
Change-Id: I51bec339c0cbcfb114f85758b6a227deb57a69e2
This commit is contained in:
Michael Wright
2016-05-03 14:32:32 +01:00
parent 51b1e0515d
commit 276cc4d8ed
2 changed files with 6 additions and 0 deletions

View File

@@ -152,6 +152,9 @@ public final class PhysicalKeyboardFragment extends SettingsPreferenceFragment
KeyboardLayout layout = info.mLayout;
if (layout != null) {
pref.setSummary(layout.getLabel());
} else {
pref.setSummary(
getPrefContext().getString(R.string.default_keyboard_layout));
}
pref.setOnPreferenceClickListener(preference -> {
showKeyboardLayoutScreen(