Compare commits

..

No commits in common. "22da30eaa819cbdd05c555cde02a13e1a4b057c4" and "8dc3d319cd34902581842bfdb43d11d08cefd20f" have entirely different histories.

2 changed files with 4 additions and 2 deletions

View File

@ -163,6 +163,7 @@ class LoginActivity : AppCompatActivity(), DIAware {
CoroutineScope(Dispatchers.IO).launch { CoroutineScope(Dispatchers.IO).launch {
val result = repository.login() val result = repository.login()
if (result) { if (result) {
repository.updateApiVersion()
goToMain() goToMain()
} else { } else {
CoroutineScope(Dispatchers.Main).launch { CoroutineScope(Dispatchers.Main).launch {

View File

@ -457,8 +457,9 @@ class Repository(private val api: SelfossApi, private val appSettingsService: Ap
val newItems = getMaxItemsForBackground(ItemType.UNREAD) val newItems = getMaxItemsForBackground(ItemType.UNREAD)
val allItems = getMaxItemsForBackground(ItemType.ALL) val allItems = getMaxItemsForBackground(ItemType.ALL)
val starredItems = getMaxItemsForBackground(ItemType.STARRED) val starredItems = getMaxItemsForBackground(ItemType.STARRED)
insertDBItems(newItems + allItems + starredItems) val fullItemsList = newItems + allItems + starredItems
return newItems insertDBItems(fullItemsList)
return fullItemsList
} catch (e: Throwable) { } catch (e: Throwable) {
// We do nothing // We do nothing
} }