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

Commit eae9223d authored by Jordan Demeulenaere's avatar Jordan Demeulenaere Committed by Automerger Merge Worker
Browse files

Fix the ongoing call chip animation. am: 7d51e555

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14643391

Change-Id: I8087c9617ae5cbf09bcfe56f31b6b9073056172e
parents 6adaa8b9 7d51e555
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
    android:layout_gravity="center_vertical|start"
>
    <LinearLayout
        android:id="@+id/ongoing_call_chip_background"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/ongoing_appops_chip_height"
        android:layout_gravity="center_vertical"
+5 −3
Original line number Diff line number Diff line
@@ -151,8 +151,10 @@ class OngoingCallController @Inject constructor(
        val currentChipView = chipView
        val timeView =
            currentChipView?.findViewById<Chronometer>(R.id.ongoing_call_chip_time)
        val backgroundView =
            currentChipView?.findViewById<View>(R.id.ongoing_call_chip_background)

        if (currentChipView != null && timeView != null) {
        if (currentChipView != null && timeView != null && backgroundView != null) {
            timeView.base = currentOngoingCallInfo.callStartTime -
                    System.currentTimeMillis() +
                    systemClock.elapsedRealtime()
@@ -162,7 +164,7 @@ class OngoingCallController @Inject constructor(
                logger.logChipClicked()
                activityStarter.postStartActivityDismissingKeyguard(
                        currentOngoingCallInfo.intent, 0,
                        ActivityLaunchAnimator.Controller.fromView(it))
                        ActivityLaunchAnimator.Controller.fromView(backgroundView))
            }

            setUpUidObserver(currentOngoingCallInfo)