[Physical Keyboard] update color of Dialog
1. update color of slider in dialog to increase contrast 2. not showing device name in Mouse key page if there's only one device connected Bug: 374030364 Bug: 377464791 Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ Change-Id: I94d7859ba1dfdad7fdca2ee750a5afeb881756f4
This commit is contained in:
@@ -77,6 +77,9 @@ public class MouseKeysImageListAdapter extends
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull MouseKeyImageViewHolder holder, int position) {
|
||||
if (mComposedSummaryList.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
((MouseKeyImageViewHolder) holder).bindView(DRAWABLE_LIST.get(position),
|
||||
mComposedSummaryList.get(position));
|
||||
}
|
||||
|
||||
@@ -63,7 +63,8 @@ public class MouseKeysMainPageFragment extends DashboardFragment
|
||||
mMouseKeyImagesPreference = screen.findPreference(KEY_MOUSE_KEY_LIST);
|
||||
mInputManager = Preconditions.checkNotNull(getActivity()
|
||||
.getSystemService(InputManager.class));
|
||||
String title = mCurrentInputDevice == null ? getActivity().getString(R.string.mouse_keys)
|
||||
String title = mCurrentInputDevice == null || getHardKeyboards(getContext()).size() == 1
|
||||
? getActivity().getString(R.string.mouse_keys)
|
||||
: getActivity().getString(R.string.mouse_key_main_page_title,
|
||||
mCurrentInputDevice.getName());
|
||||
getActivity().setTitle(title);
|
||||
|
||||
Reference in New Issue
Block a user