Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav Bogdashkin
Room Park Android
Commits
f04a265c
Commit
f04a265c
authored
Jan 29, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix feed articles not appearing on startup
parent
4cf98e8d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
ScreenController.kt
...al/roompark/presentation/screen/feeds/ScreenController.kt
+3
-2
mintty.exe.stackdump
mintty.exe.stackdump
+0
-9
No files found.
app/src/main/java/com/biganto/visual/roompark/presentation/screen/feeds/ScreenController.kt
View file @
f04a265c
...
@@ -60,9 +60,9 @@ class FeedsScreenController :
...
@@ -60,9 +60,9 @@ class FeedsScreenController :
override
fun
feedsTabSelected
():
Observable
<
String
>
override
fun
feedsTabSelected
():
Observable
<
String
>
=
feedsTabs
.
selections
()
=
feedsTabs
.
selections
()
.
filter
{
it
.
position
>=
0
&&
it
.
position
<
storedFeedsList
.
size
}
.
debounce
(
200L
,
TimeUnit
.
MILLISECONDS
)
.
debounce
(
200L
,
TimeUnit
.
MILLISECONDS
)
.
doOnNext
{
Timber
.
d
(
"it.position ${it.position}"
)
}
.
doOnNext
{
Timber
.
d
(
"it.position ${it.position}"
)
}
.
doOnNext
{
Timber
.
d
(
"storedFeedsList.size ${storedFeedsList.size }"
)
}
.
map
{
it
.
position
}
.
map
{
it
.
position
}
.
map
{
storedFeedsList
[
it
].
alias
}
.
map
{
storedFeedsList
[
it
].
alias
}
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
@@ -91,7 +91,7 @@ class FeedsScreenController :
...
@@ -91,7 +91,7 @@ class FeedsScreenController :
lateinit
var
allFeedArticles
:
MaterialButton
lateinit
var
allFeedArticles
:
MaterialButton
override
fun
requsetsNewArticles
()
=
override
fun
requsetsNewArticles
()
:
Observable
<
Pair
<
FeedModel
,
Int
>>
=
feedsRecyclerView
.
scrollStateChanges
()
feedsRecyclerView
.
scrollStateChanges
()
.
filter
{
it
==
RecyclerView
.
SCROLL_STATE_IDLE
}
.
filter
{
it
==
RecyclerView
.
SCROLL_STATE_IDLE
}
.
map
{
feedsRecyclerView
.
layoutManager
as
LinearLayoutManager
}
.
map
{
feedsRecyclerView
.
layoutManager
as
LinearLayoutManager
}
...
@@ -265,6 +265,7 @@ class FeedsScreenController :
...
@@ -265,6 +265,7 @@ class FeedsScreenController :
}
}
storedFeedsList
=
viewState
.
restore
.
feeds
storedFeedsList
=
viewState
.
restore
.
feeds
feedsTabs
.
selectTab
(
feedsTabs
.
getTabAt
(
0
))
}
}
...
...
mintty.exe.stackdump
View file @
f04a265c
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment