Fix references to resources for Settings
Bug: 293810334 Test: m Settings Change-Id: Ie140278f492ef7e1c062ec1ecae2866c521a86aa
This commit is contained in:
@@ -215,7 +215,7 @@ public class KeyboardLayoutDialogFragment extends InstrumentedDialogFragment
|
||||
private void updateSwitchHintVisibility() {
|
||||
AlertDialog dialog = (AlertDialog)getDialog();
|
||||
if (dialog != null) {
|
||||
View customPanel = dialog.findViewById(R.id.customPanel);
|
||||
View customPanel = dialog.findViewById(com.google.android.material.R.id.customPanel);
|
||||
customPanel.setVisibility(mAdapter.getCount() > 1 ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
}
|
||||
|
@@ -144,7 +144,8 @@ public class SpellCheckersSettings extends SettingsPreferenceFragment
|
||||
return getString(R.string.spell_checker_not_selected);
|
||||
}
|
||||
if (subtype == null) {
|
||||
return getString(R.string.use_system_language_to_select_input_method_subtypes);
|
||||
return getString(com.android.settingslib.R
|
||||
.string.use_system_language_to_select_input_method_subtypes);
|
||||
}
|
||||
return subtype.getDisplayName(
|
||||
getActivity(), sci.getPackageName(), sci.getServiceInfo().applicationInfo);
|
||||
|
@@ -61,7 +61,7 @@ public class VirtualKeyboardPreferenceController extends AbstractPreferenceContr
|
||||
public void updateState(Preference preference) {
|
||||
final List<InputMethodInfo> imis = mImm.getEnabledInputMethodList();
|
||||
if (imis == null) {
|
||||
preference.setSummary(R.string.summary_empty);
|
||||
preference.setSummary(com.android.settingslib.R.string.summary_empty);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public class VirtualKeyboardPreferenceController extends AbstractPreferenceContr
|
||||
labels.add(imi.loadLabel(mPm).toString());
|
||||
}
|
||||
if (labels.isEmpty()) {
|
||||
preference.setSummary(R.string.summary_empty);
|
||||
preference.setSummary(com.android.settingslib.R.string.summary_empty);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user