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

Commit cafde4f9 authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

[flexiglass] Start with the legacy UI always hidden.

The legacy UI starts always gone; the toggle view can still be used to
click 5 times near the front facing / selfie camera to toggle the
visibility of the legacy UI.

Fix: 297396602
Test: visually verified that the legacy UI starts hidden
Test: manually verified that tapping near the selfie camera 5 times
toggles the visibility of the legacy UI.

Change-Id: I1eaa617a1ee7e93ae61c0f8430b57486282a7334
parent a07db4ad
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -110,6 +110,7 @@ object SceneWindowRootViewBinder {
    //  SysUI altogether.
    //  SysUI altogether.
    private fun createVisibilityToggleView(otherView: View): View {
    private fun createVisibilityToggleView(otherView: View): View {
        val toggleView = View(otherView.context)
        val toggleView = View(otherView.context)
        otherView.isVisible = false
        toggleView.layoutParams = FrameLayout.LayoutParams(200, 200, Gravity.CENTER_HORIZONTAL)
        toggleView.layoutParams = FrameLayout.LayoutParams(200, 200, Gravity.CENTER_HORIZONTAL)
        toggleView.setOnClickListener {
        toggleView.setOnClickListener {
            val now = Instant.now()
            val now = Instant.now()