This commit is contained in:
aminecmi 2022-12-13 21:19:05 +01:00
parent 430fc8e8cb
commit 156c1681cf

View File

@ -84,7 +84,13 @@ class AppSettingsService {
}
private fun refreshItemsNumber() {
_itemsNumber = settings.getString(API_ITEMS_NUMBER, "20").toInt()
_itemsNumber = try {
settings.getString(API_ITEMS_NUMBER, "20").toInt()
} catch (e: Exception) {
settings.remove(API_ITEMS_NUMBER)
20
}
}
fun getApiTimeout(): Long {