Fix CI, Looper.getMainLooper() (#8257)

This commit is contained in:
Vetle Ledaal 2025-03-28 02:01:30 +01:00 committed by Draff
parent 2723d5d0ca
commit 49c03653f8
Signed by: Draff
GPG Key ID: E8A89F3211677653

View File

@ -317,7 +317,7 @@ class ReadMangas() : HttpSource() {
return TOKEN_REGEX.find(script)?.groups?.get(1)?.value ?: ""
}
private val handler = Handler(Looper.getMainLooper())
private val handler by lazy { Handler(Looper.getMainLooper()) }
private fun showToast(message: String) {
handler.post {