Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9be68ce1 authored by Hawkwood Glazier's avatar Hawkwood Glazier
Browse files

Prevent scaling of clocks based on accessibility

The clocks were incorrectly scaling due to accessibility. This change
also normalizes thier location to the library location.

Bug: 256953236
Test: Manually tested on a few devices
Change-Id: I51768a0ecbb83876fab92df3562d87cef3cf12ba
parent 90f48266
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
<!--
<!--
  ~ Copyright (C) 2021 The Android Open Source Project
  ~ Copyright (C) 2022 The Android Open Source Project
  ~
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ you may not use this file except in compliance with the License.
+20 −0
Original line number Original line Diff line number Diff line
<!--
  ~ Copyright (C) 2022 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>
    <!-- Large clock maximum font size (dp is intentional, to prevent any further scaling) -->
    <dimen name="large_clock_text_size">200dp</dimen>
</resources>
+2 −2
Original line number Original line Diff line number Diff line
@@ -17,8 +17,8 @@
-->
-->
<resources>
<resources>
    <!-- Clock maximum font size (dp is intentional, to prevent any further scaling) -->
    <!-- Clock maximum font size (dp is intentional, to prevent any further scaling) -->
    <dimen name="large_clock_text_size">150sp</dimen>
    <dimen name="large_clock_text_size">150dp</dimen>
    <dimen name="small_clock_text_size">86sp</dimen>
    <dimen name="small_clock_text_size">86dp</dimen>


    <!-- Default line spacing multiplier between hours and minutes of the keyguard clock -->
    <!-- Default line spacing multiplier between hours and minutes of the keyguard clock -->
    <item name="keyguard_clock_line_spacing_scale" type="dimen" format="float">.7</item>
    <item name="keyguard_clock_line_spacing_scale" type="dimen" format="float">.7</item>
+0 −3
Original line number Original line Diff line number Diff line
@@ -15,9 +15,6 @@
  -->
  -->


<resources>
<resources>
    <!-- Large clock maximum font size (dp is intentional, to prevent any further scaling) -->
    <dimen name="large_clock_text_size">200dp</dimen>

    <!-- With the large clock, move up slightly from the center -->
    <!-- With the large clock, move up slightly from the center -->
    <dimen name="keyguard_large_clock_top_margin">-112dp</dimen>
    <dimen name="keyguard_large_clock_top_margin">-112dp</dimen>
</resources>
</resources>