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

Commit a34134c9 authored by Julia Reynolds's avatar Julia Reynolds Committed by android-build-merger
Browse files

Merge "Show media stream with remote streams" into pi-dev

am: aeb22ce3

Change-Id: I0dd53319f8e7ad2e0088486f272ea5eea772207a
parents f4bf387e aeb22ce3
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -301,16 +301,9 @@ public class VolumeDialogImpl implements VolumeDialog {
        if (D.BUG) Slog.d(TAG, "Adding row for stream " + stream);
        VolumeRow row = new VolumeRow();
        initRow(row, stream, iconRes, iconMuteRes, important, defaultStream);
        if (dynamic && mRows.size() > 2) {
            // Dynamic Streams should be the first in the list, so they're shown to start of
            // everything except a11y
            mDialogRowsView.addView(row.view, 1);
            mRows.add(1, row);
        } else {
        mDialogRowsView.addView(row.view);
        mRows.add(row);
    }
    }

    private void addExistingRows() {
        int N = mRows.size();
@@ -603,7 +596,8 @@ public class VolumeDialogImpl implements VolumeDialog {
            return activeRow.stream == STREAM_RING
                    || activeRow.stream == STREAM_ALARM
                    || activeRow.stream == STREAM_VOICE_CALL
                    || activeRow.stream == STREAM_ACCESSIBILITY;
                    || activeRow.stream == STREAM_ACCESSIBILITY
                    || mDynamic.get(activeRow.stream);
        }

        return false;