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

Commit 7c8142ff authored by Brad Hinegardner's avatar Brad Hinegardner
Browse files

Customize lock screen button disappears on rotate

Apply constraints on the blueprint section was erroneously setting the
visibility on the view, so any configuration change would ignore the
view's own visibility choice.

Fixes: 322197495
Test: manual -- display the button, then rotate or unfold device, observe proper behavior
Flag: ACONFIG com.android.systemui.keyguard_bottom_area_refactor TEAMFOOD
Change-Id: I4901f966199c1ca39aad167e73440ca2befdf1fc
parent 2bcb9138
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ import androidx.constraintlayout.widget.ConstraintSet.BOTTOM
import androidx.constraintlayout.widget.ConstraintSet.END
import androidx.constraintlayout.widget.ConstraintSet.PARENT_ID
import androidx.constraintlayout.widget.ConstraintSet.START
import androidx.constraintlayout.widget.ConstraintSet.VISIBILITY_MODE_IGNORE
import androidx.constraintlayout.widget.ConstraintSet.WRAP_CONTENT
import androidx.core.view.isVisible
import com.android.systemui.Flags.keyguardBottomAreaRefactor
@@ -103,7 +104,8 @@ constructor(
                BOTTOM,
                resources.getDimensionPixelSize(R.dimen.keyguard_affordance_vertical_offset)
            )
            setVisibility(R.id.keyguard_settings_button, View.GONE)
            // Ignore ConstrainSet's default visibility, and let the view choose
            setVisibilityMode(R.id.keyguard_settings_button, VISIBILITY_MODE_IGNORE)
        }
    }