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

Commit 8485dc1b authored by Hawkwood Glazier's avatar Hawkwood Glazier
Browse files

Migrate AnimatableClockView to SystemUISharedLib

Bug: 229771520
Test: Automated
Change-Id: I93170c27d47017a81c4ef430823939fd0b9ec9c7
Merged-In: I93170c27d47017a81c4ef430823939fd0b9ec9c7
parent db8dacec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.keyguard
package com.android.systemui.animation

import android.graphics.fonts.Font
import android.graphics.fonts.FontVariationAxis
+4 −4
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.keyguard
package com.android.systemui.animation

import android.animation.Animator
import android.animation.AnimatorListenerAdapter
@@ -61,8 +61,8 @@ class TextAnimator(
    private val invalidateCallback: () -> Unit
) {
    // Following two members are for mutable for testing purposes.
    internal var textInterpolator: TextInterpolator = TextInterpolator(layout)
    internal var animator: ValueAnimator = ValueAnimator.ofFloat(1f).apply {
    public var textInterpolator: TextInterpolator = TextInterpolator(layout)
    public var animator: ValueAnimator = ValueAnimator.ofFloat(1f).apply {
        duration = DEFAULT_ANIMATION_DURATION
        addUpdateListener {
            textInterpolator.progress = it.animatedValue as Float
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.android.keyguard
package com.android.systemui.animation

import android.graphics.Canvas
import android.graphics.Paint
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
        android:layout_alignParentStart="true"
        android:layout_alignParentTop="true"
        android:paddingStart="@dimen/clock_padding_start">
        <com.android.keyguard.AnimatableClockView
        <com.android.systemui.shared.clocks.AnimatableClockView
            android:id="@+id/animatable_clock_view"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
@@ -53,7 +53,7 @@
        android:layout_height="wrap_content"
        android:layout_below="@id/keyguard_slice_view"
        android:visibility="gone">
        <com.android.keyguard.AnimatableClockView
        <com.android.systemui.shared.clocks.AnimatableClockView
            android:id="@+id/animatable_clock_view_large"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
+0 −6
Original line number Diff line number Diff line
@@ -41,10 +41,4 @@
    <attr name="passwordStyle" format="reference" />

    <attr name="numPadKeyStyle" format="reference" />

    <declare-styleable name="AnimatableClockView">
        <attr name="dozeWeight" format="integer" />
        <attr name="lockScreenWeight" format="integer" />
        <attr name="chargeAnimationDelay" format="integer" />
    </declare-styleable>
</resources>
Loading