rpc fix
This commit is contained in:
parent
c728eae2ba
commit
8c957007ab
2 changed files with 7 additions and 12 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue