feat: error message snack -> toast
This commit is contained in:
parent
6d2c01ff2b
commit
51841cf05f
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import ani.dantotsu.connections.anilist.Anilist
|
|||
import ani.dantotsu.settings.saving.PrefManager
|
||||
import ani.dantotsu.settings.saving.PrefName
|
||||
import ani.dantotsu.snackString
|
||||
import ani.dantotsu.toast
|
||||
import com.lagradost.nicehttp.NiceResponse
|
||||
import com.lagradost.nicehttp.Requests
|
||||
import eu.kanade.tachiyomi.network.NetworkHelper
|
||||
|
@ -389,7 +390,7 @@ object CommentsAPI {
|
|||
val message = parsed?.message ?: reason ?: error
|
||||
val fullMessage = if(code == 500) message else "$code: $message"
|
||||
|
||||
snackString(fullMessage)
|
||||
toast(fullMessage)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue