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

Commit 9a04fbfe authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Explicitly attach before detach" into main

parents 9ae9bad4 ac0bcdea
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ class NotificationTemplateViewWrapperTest : SysuiTestCase() {

    @Test
    fun actionViewDetached_pendingIntentListenersDeregistered() {
        ViewUtils.detachView(root)
        val pi =
            PendingIntent.getActivity(
                mContext,
@@ -182,6 +183,9 @@ class NotificationTemplateViewWrapperTest : SysuiTestCase() {
        createActionWithPendingIntent(spy)
        val wrapper = NotificationTemplateViewWrapper(mContext, view, row)
        wrapper.onContentUpdated(row)
        ViewUtils.attachView(root)
        looper.processAllMessages()

        ViewUtils.detachView(root)
        looper.processAllMessages()