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

Commit b884b888 authored by Lucas Silva's avatar Lucas Silva
Browse files

Stop force-removing the task fragment when home controls dream ends

Instead we will finish the parent activity (DreamActivity) and just let
the TaskFragment get cleaned up with the parent.

Bug: 405254417
Test: manually on device by entering and exiting the home controls dream
Flag: EXEMPT bugfix
Change-Id: I580324408382330e9f47e1cbd548804afb0d8317
parent 9557e44e
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -150,18 +150,6 @@ constructor(

    /** Destroys the task fragment */
    fun destroy() {
        organizer.applyTransaction(
            WindowContainerTransaction()
                .addTaskFragmentOperation(
                    fragmentToken,
                    TaskFragmentOperation.Builder(
                            TaskFragmentOperation.OP_TYPE_DELETE_TASK_FRAGMENT
                        )
                        .build(),
                ),
            TaskFragmentOrganizer.TASK_FRAGMENT_TRANSIT_CLOSE,
            false,
        )
        organizer.unregisterOrganizer()
    }
}