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

Commit a24baca0 authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Make sure the ringer drawer is present before trying to hide it.

Fixes: 181751039
Test: I don't have a TV device, but it's just a null check
Change-Id: Ic26a81e1bec67106b7b6154438bac0cabc07dc60
parent 4a08dabf
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -778,6 +778,12 @@ public class VolumeDialogImpl implements VolumeDialog,


    /** Animates away the ringer drawer. */
    /** Animates away the ringer drawer. */
    private void hideRingerDrawer() {
    private void hideRingerDrawer() {

        // If the ringer drawer isn't present, don't try to hide it.
        if (mRingerDrawerContainer == null) {
            return;
        }

        // Hide the drawer icon for the selected ringer - it's visible in the ringer button and we
        // Hide the drawer icon for the selected ringer - it's visible in the ringer button and we
        // don't want to be able to see it while it animates away.
        // don't want to be able to see it while it animates away.
        getDrawerIconViewForMode(mState.ringerModeInternal).setVisibility(INVISIBLE);
        getDrawerIconViewForMode(mState.ringerModeInternal).setVisibility(INVISIBLE);