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

Commit e19c1374 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz Committed by Android (Google) Code Review
Browse files

Merge "[RONs-AOD] clean AOD Skeleton parent before using it" into main

parents 6eefe300 7366fa04
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import android.view.View.MeasureSpec.EXACTLY
import android.view.View.MeasureSpec.UNSPECIFIED
import android.view.View.MeasureSpec.makeMeasureSpec
import android.view.View.VISIBLE
import android.view.ViewGroup
import android.view.ViewGroup.MarginLayoutParams
import android.view.ViewStub
import android.widget.Chronometer
@@ -160,6 +161,9 @@ fun AODPromotedNotificationView(
        AndroidView(
            factory = { context ->
                val notificationView = notificationViewFactory(context)
                if (notificationView.parent != null) {
                    (notificationView.parent as ViewGroup).removeView(notificationView)
                }
                val updater =
                    traceSection("$TAG.findViews") {
                        AODPromotedNotificationViewUpdater(notificationView)