mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-16 00:58:21 +00:00
Two focus states in the same screen because taskbar and launcher are two processes. And we could not use keyboard to navigate to the nav button, agreed with UX that it should not have focus state. Make it not focusable to remove focus state as we are unable to focus on it by keyboard anyways. Tested that it would not affect TalkBack and SwitchAccess. Only one focus in testing video: https://drive.google.com/file/d/18X3dtsvqfCMpdI7sBRxnaKwUCQzhHn8n/view?usp=sharing Bug: 327386991 Test: Manual, navigate by keyboard in homepage and ensure there is no focus in the nav buttons Flag: ACONFIG com.android.launcher3.enable_focus_outline Nextfood Change-Id: I289ecb1784f8eb9b58bb36b28059ce4f367cf84e
25 lines
1.1 KiB
XML
25 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2021 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<ImageView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="@dimen/taskbar_nav_buttons_size"
|
|
android:layout_height="@dimen/taskbar_nav_buttons_size"
|
|
android:background="@drawable/taskbar_icon_click_feedback_roundrect"
|
|
android:focusable="false"
|
|
android:scaleType="center"
|
|
android:tint="@color/taskbar_nav_icon_light_color"
|
|
tools:ignore="UseAppTint" /> |