From 13becc97fc5b305009268526f870199ec85cb1ce Mon Sep 17 00:00:00 2001
From: Daniel Chapin <chapin@google.com>
Date: Wed, 18 Oct 2023 15:26:00 +0000
Subject: [PATCH] Revert "Modify inflation of ambient indication area to handle
 me..."

Revert submission 25007252-release_migrate_split_keyguard_bottom_area

Reason for revert: Droidfood blocking bug: b/306101773

Reverted changes: /q/submissionid:25007252-release_migrate_split_keyguard_bottom_area
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d86d82cb6a05bec6ac3c0e2fa1ae08ffbbe6f8af)
Merged-In: I712480594ec25d39bcff6030ee81b2ba5900db35
Change-Id: I712480594ec25d39bcff6030ee81b2ba5900db35
---
 .../layout/sections/DefaultAmbientIndicationAreaSection.kt | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/DefaultAmbientIndicationAreaSection.kt b/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/DefaultAmbientIndicationAreaSection.kt
index 342a440d972b..9371d4e2d465 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/DefaultAmbientIndicationAreaSection.kt
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/DefaultAmbientIndicationAreaSection.kt
@@ -50,8 +50,11 @@ constructor(
 
     override fun addViews(constraintLayout: ConstraintLayout) {
         if (featureFlags.isEnabled(Flags.MIGRATE_SPLIT_KEYGUARD_BOTTOM_AREA)) {
-            LayoutInflater.from(constraintLayout.context)
-                .inflate(R.layout.ambient_indication, constraintLayout, true)
+            val view =
+                LayoutInflater.from(constraintLayout.context)
+                    .inflate(R.layout.ambient_indication, constraintLayout, false)
+
+            constraintLayout.addView(view)
         }
     }
 
-- 
GitLab