Show MAL relogin message on update, localize error message

This commit is contained in:
arkon
2020-12-13 17:52:21 -05:00
parent 5901978889
commit 2cb3984d68
3 changed files with 8 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ class MyAnimeList(private val context: Context, id: Int) : TrackService(id) {
fun ensureLoggedIn() {
if (isAuthorized) return
if (!isLogged) throw Exception("MAL login credentials not found")
if (!isLogged) throw Exception(context.getString(R.string.myanimelist_creds_missing))
}
override fun logout() {