Delete the tokens on logout

This commit is contained in:
Jobobby04 2021-07-24 12:40:18 -04:00
parent 464f2b01a1
commit 75f5d46f6a

View File

@ -150,5 +150,10 @@ class MdList(private val context: Context, id: Int) : TrackService(id) {
override suspend fun login(username: String, password: String): Unit = throw Exception("not used")
override fun logout() {
super.logout()
preferences.trackToken(this).delete()
}
class MangaDexNotFoundException : Exception("Mangadex not enabled")
}