diff options
author | 2025-03-18 17:10:55 -0700 | |
---|---|---|
committer | 2025-03-18 17:20:03 -0700 | |
commit | 57a97968108857574ff38f2f57b2c8d616ccd689 (patch) | |
tree | c9bc5f267714992231dbb02e9e13c6524d92626d /PermissionController | |
parent | a62dd6ccdcea43e182944c783134457b9245d748 (diff) |
Mirror chevron arrow in safety center quick settings
In RTL languages, the arrow should point left, not right
Fixes: 401865911
Test: manual
Flag: EXEMPT mainline fix
Relnote: Minor visual fix
LOW_COVERAGE_REASON=NON_CODE_ONLY
Change-Id: I560df580a0f5f25dd3585679ec6c2e80cc46a183
Diffstat (limited to 'PermissionController')
-rw-r--r-- | PermissionController/res/layout-v33/safety_center_toggle_button.xml | 2 | ||||
-rw-r--r-- | PermissionController/res/values-ldrtl/integers.xml | 18 | ||||
-rw-r--r-- | PermissionController/res/values/integers.xml | 18 |
3 files changed, 38 insertions, 0 deletions
diff --git a/PermissionController/res/layout-v33/safety_center_toggle_button.xml b/PermissionController/res/layout-v33/safety_center_toggle_button.xml index f790e734e..52d62a7ed 100644 --- a/PermissionController/res/layout-v33/safety_center_toggle_button.xml +++ b/PermissionController/res/layout-v33/safety_center_toggle_button.xml @@ -35,8 +35,10 @@ android:text="@string/available"/> </LinearLayout> + <!-- The X scale controls the direction of the arrow, based on the language direction --> <ImageView android:id="@+id/arrow_icon" style="@style/SafetyCenterQsToggleArrow" + android:scaleX="@integer/mirror_x_scale" android:visibility="gone"/> </LinearLayout> diff --git a/PermissionController/res/values-ldrtl/integers.xml b/PermissionController/res/values-ldrtl/integers.xml new file mode 100644 index 000000000..ca998ad16 --- /dev/null +++ b/PermissionController/res/values-ldrtl/integers.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2025 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. +--> +<resources> + <integer name="mirror_x_scale">-1</integer> +</resources> diff --git a/PermissionController/res/values/integers.xml b/PermissionController/res/values/integers.xml new file mode 100644 index 000000000..c65ec99de --- /dev/null +++ b/PermissionController/res/values/integers.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2025 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. +--> +<resources> + <integer name="mirror_x_scale">1</integer> +</resources> |