From cd60c3c66ac5c7f871ff4c666bb57b4db8887f3c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sun, 4 May 2014 12:22:38 +0200 Subject: [PATCH] Fixed play service stopping if PlayFragment is unBound. --- .../nutomic/controldlna/mediarouter/MediaRouterPlayService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java b/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java index 12e4a2c..5d64d0b 100644 --- a/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java +++ b/src/com/github/nutomic/controldlna/mediarouter/MediaRouterPlayService.java @@ -123,7 +123,7 @@ public class MediaRouterPlayService extends Service { if (route.equals(mCurrentRoute)) stopForeground(true); - if (!mBound) + if (!mBound && !mPollingStatus) stopSelf(); } };