mirror of
https://github.com/mihonapp/mihon.git
synced 2025-03-13 16:20:08 +01:00
fixup! Add 'show entry' to download notifications
Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>
This commit is contained in:
parent
77aec29aaf
commit
e062d1128e
@ -110,11 +110,6 @@ class NotificationReceiver : BroadcastReceiver() {
|
||||
downloadChapters(urls, mangaId)
|
||||
}
|
||||
}
|
||||
// Open an entry's page
|
||||
// ACTION_OPEN_ENTRY -> {
|
||||
// val mangaId = intent.getLongExtra(EXTRA_MANGA_ID, -1)
|
||||
// openEntry(context, mangaId)
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,19 +162,6 @@ class NotificationReceiver : BroadcastReceiver() {
|
||||
}
|
||||
}
|
||||
|
||||
// private fun openEntry(context: Context, mangaId: Long){ // TODO: open manga
|
||||
// val manga = runBlocking { getManga.await(mangaId) }
|
||||
// if (manga != null){
|
||||
// val intent = Intent(context,MainActivity::class.java).apply {
|
||||
// flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP
|
||||
// }
|
||||
// context.startActivity(intent)
|
||||
// }
|
||||
// else{
|
||||
// context.toast(MR.strings.error_no_match)
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* Method called when user wants to stop a backup restore job.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user