aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-03-10 17:57:59 -0800
committerScott Jackson <daneren2005@gmail.com>2016-03-10 17:57:59 -0800
commit44ca5f7438e111459358993aa3caa3b416a02ed6 (patch)
treeb463ea7caa407ba30e0835c26ee3d87c4d117bd3
parent69ba57fa67a374a3f3e4c3a02da84ec6130fb081 (diff)
downloaddsub-44ca5f7438e111459358993aa3caa3b416a02ed6.tar.gz
dsub-44ca5f7438e111459358993aa3caa3b416a02ed6.tar.bz2
dsub-44ca5f7438e111459358993aa3caa3b416a02ed6.zip
Fix DLNA device maxVolume == -1 crashing
-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 c5632362..0f6975ba 100644
--- a/app/src/main/java/github/daneren2005/dsub/provider/DLNARouteProvider.java
+++ b/app/src/main/java/github/daneren2005/dsub/provider/DLNARouteProvider.java
@@ -166,7 +166,7 @@ public class DLNARouteProvider extends MediaRouteProvider {
DLNADevice device = deviceEntry.getValue();
int volume;
- if(device.volumeMax == 0) {
+ if(device.volumeMax <= 0) {
volume = 5;
} else {
int increments = (int) Math.ceil(device.volumeMax / 10.0);