summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ibrahim Yilmaz <iyz@google.com> 2024-04-11 09:55:47 +0000
committer Ibrahim Yilmaz <iyz@google.com> 2024-04-11 09:58:19 +0000
commit7628dc3a4b081c7715d902572b3417f2a468b2de (patch)
tree0c891710ae392a60027aeb6f0e2c0690a98b6cc5
parent1265dc5010c68b1b3823c75b85b7e4a8dace530f (diff)
[KeyguardMediaController] Fix activeContainer logs
We had a field named activeContainer in KeyguadMediaController which is only used for logActiveMediaContainer. As this field is not calculated field. We see its value is null in logs which might cause us to draw wrong conclusions. This CL fix this. Bug: 298213983 Test: BR Flag: NONE Change-Id: I352bf6c9f8b6d263c8dcb0129af0e43a14013e05
-rw-r--r--packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/KeyguardMediaController.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/KeyguardMediaController.kt b/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/KeyguardMediaController.kt
index 963c602b3d1e..c02ce3b0a6c0 100644
--- a/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/KeyguardMediaController.kt
+++ b/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/KeyguardMediaController.kt
@@ -297,6 +297,7 @@ constructor(
}
}
- private val activeContainer: ViewGroup? =
- if (useSplitShade) splitShadeContainer else singlePaneContainer
+ // This field is only used to log current active container.
+ private val activeContainer: ViewGroup?
+ get() = if (useSplitShade) splitShadeContainer else singlePaneContainer
}