From 44ca5f7438e111459358993aa3caa3b416a02ed6 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 10 Mar 2016 17:57:59 -0800 Subject: Fix DLNA device maxVolume == -1 crashing --- .../main/java/github/daneren2005/dsub/provider/DLNARouteProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java') 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); -- cgit v1.2.3