From 53c0a95bf7ef6557a4d6a26c32161e5be1e7e671 Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 4 Dec 2019 15:09:55 +0800 Subject: [PATCH] up --- .../io/legado/app/receiver/OnUpgradeReceiver.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app/src/main/java/io/legado/app/receiver/OnUpgradeReceiver.kt diff --git a/app/src/main/java/io/legado/app/receiver/OnUpgradeReceiver.kt b/app/src/main/java/io/legado/app/receiver/OnUpgradeReceiver.kt new file mode 100644 index 000000000..256d4e13d --- /dev/null +++ b/app/src/main/java/io/legado/app/receiver/OnUpgradeReceiver.kt @@ -0,0 +1,16 @@ +package io.legado.app.receiver + +import android.content.BroadcastReceiver +import android.content.Context +import android.content.Intent +import io.legado.app.service.help.ReadAloud + +class OnUpgradeReceiver : BroadcastReceiver() { + + override fun onReceive(context: Context?, intent: Intent?) { + context?.let { + ReadAloud.stop(it) + } + } + +} \ No newline at end of file