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

Commit 1fcc7bb5 authored by Ben Lin's avatar Ben Lin
Browse files

Fix a visibility issue in App Handle w/ Immersive.

We check against captionView visibility to update the captionHandle visibility. What ends up happening is after one =Visible.GONE, captionHandle's visibility will never change again, and since we never update captionView's visibility it will now either always exit early (as we try to update to VISIBLE) or re-update to GONE.

Bug: 406081597
Test: Manual - drag up/down while in immersive mode and see app handle shows/hides
Flag: EXEMPT bugfix
Change-Id: Id90cebd9f41888b8e54ee2324a791a4cb5047159
parent 6c9e8790
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ class AppHandleViewHolder(
        }
        // TODO(b/405251465): animate app handle visibility change after creation and animation are
        //  moved to a background thread.
        captionHandle.visibility = v
        captionView.visibility = v
    }

    private fun getCaptionHandleBarColor(taskInfo: RunningTaskInfo): Int {