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

Commit 93abc0c2 authored by AragaoAnderson's avatar AragaoAnderson Committed by Adnan Begovic
Browse files

Framework: Always show ZenPanel when showing expanded volume panel

This will fit with new 5.1 Stock volume panel and always show ZenPanel when expanded

Thanks to @Altaf-Mahdi for the hint!

Change-Id: Ia31afa6bb65510db9874f309c7b47476c87f9f91
parent 80bc55be
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -784,6 +784,7 @@ public class VolumePanel extends Handler implements DemoMode {
                }
            }
        }
        updateZenPanelVisible();
    }

    private void diappearVolumePanel() {
@@ -1041,7 +1042,8 @@ public class VolumePanel extends Handler implements DemoMode {
    }

    private void updateZenPanelVisible() {
        setZenPanelVisible(mZenModeAvailable && isNotificationOrRing(mActiveStreamType));
        setZenPanelVisible(mZenModeAvailable && 
            (isNotificationOrRing(mActiveStreamType) || mExtendedPanelExpanded));
    }

    public void postVolumeChanged(int streamType, int flags) {