From 1b66ef0a75dfdf5e963a1989aa3046764eeab777 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 19 Sep 2019 09:32:13 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/service/BaseReadAloudService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt index 6ee66129b..03591482e 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt @@ -69,6 +69,7 @@ abstract class BaseReadAloudService : BaseService(), unregisterReceiver(broadcastReceiver) postEvent(Bus.ALOUD_STATE, Status.STOP) upMediaSessionPlaybackState(PlaybackStateCompat.STATE_STOPPED) + mediaSessionCompat?.release() } override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {