Fix notification can't be killed when player is not playing.

Fix clicking on close (x) in notification does nothing when player has
neither playing nor paused state.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
Yahor Berdnikau 2018-04-06 19:00:59 +02:00
parent d3dc851419
commit 41fe68db0f
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ public class DownloadServiceImpl extends Service implements DownloadService
}
setPlayerState(STOPPED);
}
else if (playerState == PAUSED)
else
{
setPlayerState(STOPPED);
}