aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/github
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/github')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/provider/DLNARouteProvider.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/provider/DLNARouteProvider.java b/app/src/main/java/github/daneren2005/dsub/provider/DLNARouteProvider.java
index 73d4b5de..c5632362 100644
--- a/app/src/main/java/github/daneren2005/dsub/provider/DLNARouteProvider.java
+++ b/app/src/main/java/github/daneren2005/dsub/provider/DLNARouteProvider.java
@@ -169,7 +169,7 @@ public class DLNARouteProvider extends MediaRouteProvider {
if(device.volumeMax == 0) {
volume = 5;
} else {
- int increments = device.volumeMax / 10;
+ int increments = (int) Math.ceil(device.volumeMax / 10.0);
volume = controller == null ? device.volume : (int) controller.getVolume();
volume = volume / increments;
}