Fixed Anilist crash

This commit is contained in:
Jay 2020-05-02 13:29:14 -04:00
parent 9c199f4612
commit 36dfb2484a

View File

@ -74,7 +74,7 @@ data class ALUserManga(
"DROPPED" -> Anilist.DROPPED
"PLANNING" -> Anilist.PLANNING
"REPEATING" -> Anilist.REPEATING
else -> throw NotImplementedError("Unknown status")
else -> Anilist.READING
}
}
@ -85,7 +85,7 @@ fun Track.toAnilistStatus() = when (status) {
Anilist.DROPPED -> "DROPPED"
Anilist.PLANNING -> "PLANNING"
Anilist.REPEATING -> "REPEATING"
else -> throw NotImplementedError("Unknown status")
else -> "CURRENT"
}
private val preferences: PreferencesHelper by injectLazy()