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

Commit bf67785a authored by Aaron Liu's avatar Aaron Liu Committed by Android (Google) Code Review
Browse files

Merge "Ensure that we destroy view before adding another" into main

parents 4dfae1e5 3c60580d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -287,6 +287,10 @@ constructor(
            return
        }

        if (smartSpaceView != null) {
            parentView.removeView(smartSpaceView)
        }

        smartSpaceView = lockscreenSmartspaceController.buildAndConnectDateView(parentView)

        val topPadding: Int =
@@ -362,12 +366,13 @@ constructor(
            ),
        )

        setUpUdfps(previewContext, rootView)

        disposables.add(
            PreviewKeyguardBlueprintViewBinder.bind(keyguardRootView, keyguardBlueprintViewModel) {
                if (keyguardBottomAreaRefactor()) {
                    setupShortcuts(keyguardRootView)
                }
                setUpUdfps(previewContext, rootView)

                if (!shouldHideClock) {
                    setUpClock(previewContext, rootView)