From 471b661c97cf12b72e38b7e0b962cec0401fe23c Mon Sep 17 00:00:00 2001 From: Chandru S Date: Wed, 31 May 2023 16:52:17 -0700 Subject: [PATCH] Hide the new bouncer message views by default They take up space in the layout even though we don't display any messages The CL ag/23085660 that removes these views from layout when the flag is disabled couldn't be merged on time for the udc-dev cutoff Fixes: 282890822 Test: verified manually, flashed the build, enabled layout bounds through dev options and don't see the new views on bouncer. Change-Id: I90c3e325f01535fbc1edfe669d80541e901b6841 --- .../android/systemui/keyguard/bouncer/ui/BouncerMessageView.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/bouncer/ui/BouncerMessageView.kt b/packages/SystemUI/src/com/android/systemui/keyguard/bouncer/ui/BouncerMessageView.kt index c0a5a51a910de..4dc52ff46707f 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/bouncer/ui/BouncerMessageView.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/bouncer/ui/BouncerMessageView.kt @@ -41,6 +41,8 @@ class BouncerMessageView : LinearLayout { super.onFinishInflate() primaryMessageView = findViewById(R.id.bouncer_primary_message_area) secondaryMessageView = findViewById(R.id.bouncer_secondary_message_area) + primaryMessageView?.disable() + secondaryMessageView?.disable() } fun init(factory: KeyguardMessageAreaController.Factory) {