Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6abceeec authored by Sergey Nikolaienkov's avatar Sergey Nikolaienkov
Browse files

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
parent 400379c2
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -498,15 +498,13 @@ public class AudioRecordingDisclosureBar implements

        mState = STATE_MINIMIZED;

        if (mRevealRecordingPackages) {
            if (!mPendingNotificationPackages.isEmpty()) {
        if (mRevealRecordingPackages && !mPendingNotificationPackages.isEmpty()) {
            // There is a new application that started recording, tell the user about it.
            expand(mPendingNotificationPackages.poll());
        } else {
            hideIndicatorIfNeeded();
        }
    }
    }

    @UiThread
    private void onHidden() {