fixup! Add 'show entry' to download notifications

Signed-off-by: Catting <5874051+mm12@users.noreply.github.com>
This commit is contained in:
Catting 2024-08-25 10:43:42 -05:00
parent 77aec29aaf
commit e062d1128e

View File

@ -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.
*