Fixes #111.
This commit is contained in:
parent
430fc8e8cb
commit
156c1681cf
@ -84,7 +84,13 @@ class AppSettingsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun refreshItemsNumber() {
|
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 {
|
fun getApiTimeout(): Long {
|
||||||
|
Loading…
Reference in New Issue
Block a user