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

Commit 9158a60b authored by Hawkwood Glazier's avatar Hawkwood Glazier
Browse files

DefaultClockProvider implementation using AnimatableClockView

Bug: 229771520
Test: Automated
Change-Id: Iba6c81f8b469ef2d0a5bc38dd89454d75bfe8a43
(cherry picked from commit c742a9cb)
Merged-In: Iba6c81f8b469ef2d0a5bc38dd89454d75bfe8a43
parent f6e087e3
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4390,6 +4390,9 @@
    <!-- Name of a font family to use for medium body text. -->
    <string name="config_bodyFontFamilyMedium" translatable="false">sans-serif-medium</string>

    <!-- Name of the font family to use in the default lockscreen clock -->
    <string name="config_clockFontFamily" translatable="false">monospace</string>

    <!-- Size of icon shown beside a preference locked by admin -->
    <dimen name="config_restrictedIconSize">@dimen/restricted_icon_size_material</dimen>

+1 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
** Should include all numeric glyphs in all supported locales.
** Recommended: font with variable width to support AOD => LS animations
-->
<!-- TODO: Remove when clock migration complete -->
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
    <font android:typeface="monospace"/>
</font-family>
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -666,6 +666,7 @@
    <!-- With the large clock, move up slightly from the center -->
    <dimen name="keyguard_large_clock_top_margin">-60dp</dimen>

    <!-- TODO: Remove during migration -->
    <!-- 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>
    <!-- Burmese line spacing multiplier between hours and minutes of the keyguard clock -->
@@ -890,6 +891,7 @@
    <dimen name="burn_in_prevention_offset_y_clock">42dp</dimen>

    <!-- Clock maximum font size (dp is intentional, to prevent any further scaling) -->
     <!-- TODO: Remove when clock migration complete -->
    <dimen name="large_clock_text_size">150dp</dimen>
    <dimen name="clock_text_size">86dp</dimen>

+3 −0
Original line number Diff line number Diff line
@@ -56,6 +56,9 @@ android_library {
        "dagger2",
        "jsr330",
    ],
    resource_dirs: [
        "res",
    ],
    java_version: "1.8",
    min_sdk_version: "current",
    plugins: ["dagger2-compiler"],
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ 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
  -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <solid android:color="#FFFF00FF" />
</shape>
Loading