Fixed play service stopping if PlayFragment is unBound.
This commit is contained in:
parent
55bb705ac0
commit
cd60c3c66a
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class MediaRouterPlayService extends Service {
|
||||||
if (route.equals(mCurrentRoute))
|
if (route.equals(mCurrentRoute))
|
||||||
stopForeground(true);
|
stopForeground(true);
|
||||||
|
|
||||||
if (!mBound)
|
if (!mBound && !mPollingStatus)
|
||||||
stopSelf();
|
stopSelf();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue