Merge "Fix for mic dislosure indicator getting stuck"

This commit is contained in:
TreeHugger Robot
2020-08-13 23:16:45 +00:00
committed by Android (Google) Code Review

View File

@@ -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();
}
}