Commit f04a265c authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

fix feed articles not appearing on startup

parent 4cf98e8d
......@@ -60,9 +60,9 @@ class FeedsScreenController :
override fun feedsTabSelected(): Observable<String>
= feedsTabs.selections()
.filter { it.position>= 0 && it.position<storedFeedsList.size }
.debounce (200L, TimeUnit.MILLISECONDS)
.doOnNext { Timber.d("it.position ${it.position}") }
.doOnNext { Timber.d("storedFeedsList.size ${storedFeedsList.size }") }
.map { it.position }
.map { storedFeedsList[it].alias }
.observeOn(AndroidSchedulers.mainThread())
......@@ -91,7 +91,7 @@ class FeedsScreenController :
lateinit var allFeedArticles:MaterialButton
override fun requsetsNewArticles() =
override fun requsetsNewArticles(): Observable<Pair<FeedModel, Int>> =
feedsRecyclerView.scrollStateChanges()
.filter { it == RecyclerView.SCROLL_STATE_IDLE}
.map { feedsRecyclerView.layoutManager as LinearLayoutManager }
......@@ -265,6 +265,7 @@ class FeedsScreenController :
}
storedFeedsList = viewState.restore.feeds
feedsTabs.selectTab(feedsTabs.getTabAt(0))
}
......
Exception: STATUS_ACCESS_VIOLATION at rip=7FFC53A72768
rax=00007FFC53A72768 rbx=0000000000191500 rcx=0000000004858270
rdx=0000000000000009 rsi=0000000000000019 rdi=00000000000C5398
r8 =000000000019CD01 r9 =00000000000C5348 r10=0000000000000000
r11=00000000008CC690 r12=0000000000000000 r13=00007FFCA7666120
r14=00000000048A0FE0 r15=0000000000000002
rbp=0000000000000001 rsp=00000000008CC758
program=C:\Program Files\Git\usr\bin\mintty.exe, pid 19556, thread
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment