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

Commit 798b0c3f authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Handle streams that have a min level above 0.

The dialog will continue to stop at the minimum level on drag,
but won't show zero on reopening the dialog or pressing the
mute icon.

Bug: 23581121
Change-Id: Idaa313e48b1a56e91ed4c4895ad69f79bef293a3
parent 81d74743
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -421,8 +421,9 @@ public class VolumeDialog {
                        }
                    }
                } else {
                    final boolean vmute = row.ss.level == 0;
                    mController.setStreamVolume(stream, vmute ? row.lastAudibleLevel : 0);
                    final boolean vmute = row.ss.level == row.ss.levelMin;
                    mController.setStreamVolume(stream,
                            vmute ? row.lastAudibleLevel : row.ss.levelMin);
                }
                row.userAttempt = 0;  // reset the grace period, slider should update immediately
            }
@@ -1024,6 +1025,7 @@ public class VolumeDialog {
                final int minProgress = mRow.ss.levelMin * 100;
                if (progress < minProgress) {
                    seekBar.setProgress(minProgress);
                    progress = minProgress;
                }
            }
            final int userLevel = getImpliedLevel(seekBar, progress);