Merge "Add subtext for default keyboard layout." into nyc-dev

This commit is contained in:
Michael Wright
2016-05-03 18:28:59 +00:00
committed by Android (Google) Code Review
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(