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

Commit 7ba7894a authored by Timi Rautamäki's avatar Timi Rautamäki
Browse files

VolumeDialog: fix an NPE on TV dialog

TV doesn't have multiple rows on volume dialog.

Change-Id: I5f404ec8a8d142e96d2785f3b313b97568f45729
parent 255c6ea6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -573,7 +573,11 @@ public class VolumeDialogImpl implements VolumeDialog,
        if (!vis && stream == mAllyStream) {
            return;
        }
        Util.setVisOrGone(findRow(stream).view, vis);

        VolumeRow streamRow = findRow(stream);
        if (streamRow != null && streamRow.view != null) {
            Util.setVisOrGone(streamRow.view, vis);
        }
    }

    private void updateExpandedRows(boolean expand) {