1
0
mirror of https://github.com/ultrasonic/ultrasonic synced 2025-01-30 00:44:53 +01:00

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

View File

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