This commit is contained in:
Finnley Somdahl 2023-12-04 22:15:48 -06:00
parent c728eae2ba
commit 8c957007ab
2 changed files with 7 additions and 12 deletions

View file

@ -124,12 +124,10 @@ class MangaReaderActivity : AppCompatActivity() {
override fun onDestroy() {
mangaCache.clear()
val stopIntent = Intent(this, DiscordService::class.java).apply {
putExtra(DiscordService.ACTION_STOP_SERVICE, true)
}
if (!isOnline(this)) { //TODO:
if (isOnline(baseContext)) { //TODO:
DiscordServiceRunningSingleton.running = false
startService(stopIntent)
val stopIntent = Intent(this, DiscordService::class.java)
stopService(stopIntent)
}
super.onDestroy()
}