diff --git a/packages/SystemUI/res/layout/ongoing_call_chip.xml b/packages/SystemUI/res/layout/ongoing_call_chip.xml index f8175d4766305..5389d9bbcc977 100644 --- a/packages/SystemUI/res/layout/ongoing_call_chip.xml +++ b/packages/SystemUI/res/layout/ongoing_call_chip.xml @@ -23,6 +23,7 @@ android:layout_gravity="center_vertical|start" > (R.id.ongoing_call_chip_time) + currentChipView?.findViewById(R.id.ongoing_call_chip_time) + val backgroundView = + currentChipView?.findViewById(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)