From 6abceeece23f7f8fcb903c3c1786fb0af60fa2a1 Mon Sep 17 00:00:00 2001 From: Sergey Nikolaienkov Date: Thu, 13 Aug 2020 21:50:44 +0000 Subject: [PATCH] Fix for mic dislosure indicator getting stuck When mic disclosure indicator comes to minimized state it should check whether there are still active recordings and if not - dissmiss itself. That was wrongly happening only if mRevealRecordingPackages is true. This CL fixes it. Bug: 161744641 Test: manually Change-Id: I3009f64ae7afe556e9e4933101a04441c45b95ba --- .../micdisclosure/AudioRecordingDisclosureBar.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tv/micdisclosure/AudioRecordingDisclosureBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/tv/micdisclosure/AudioRecordingDisclosureBar.java index dde8854a2b357..d4c6f4d6232af 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/tv/micdisclosure/AudioRecordingDisclosureBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/tv/micdisclosure/AudioRecordingDisclosureBar.java @@ -498,13 +498,11 @@ public class AudioRecordingDisclosureBar implements mState = STATE_MINIMIZED; - if (mRevealRecordingPackages) { - if (!mPendingNotificationPackages.isEmpty()) { - // There is a new application that started recording, tell the user about it. - expand(mPendingNotificationPackages.poll()); - } else { - hideIndicatorIfNeeded(); - } + if (mRevealRecordingPackages && !mPendingNotificationPackages.isEmpty()) { + // There is a new application that started recording, tell the user about it. + expand(mPendingNotificationPackages.poll()); + } else { + hideIndicatorIfNeeded(); } }