Float onboarding story to top of the list.
This commit is contained in:
parent
34379b8d3a
commit
ecbc2d30ca
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ data class StoriesLandingItemData(
|
||||||
return when {
|
return when {
|
||||||
storyRecipient.isMyStory && !other.storyRecipient.isMyStory -> -1
|
storyRecipient.isMyStory && !other.storyRecipient.isMyStory -> -1
|
||||||
!storyRecipient.isMyStory && other.storyRecipient.isMyStory -> 1
|
!storyRecipient.isMyStory && other.storyRecipient.isMyStory -> 1
|
||||||
storyRecipient.isReleaseNotes && !other.storyRecipient.isReleaseNotes -> 1
|
storyRecipient.isReleaseNotes && !other.storyRecipient.isReleaseNotes -> -1
|
||||||
!storyRecipient.isReleaseNotes && other.storyRecipient.isReleaseNotes -> -1
|
!storyRecipient.isReleaseNotes && other.storyRecipient.isReleaseNotes -> 1
|
||||||
storyViewState == StoryViewState.UNVIEWED && other.storyViewState != StoryViewState.UNVIEWED -> -1
|
storyViewState == StoryViewState.UNVIEWED && other.storyViewState != StoryViewState.UNVIEWED -> -1
|
||||||
storyViewState != StoryViewState.UNVIEWED && other.storyViewState == StoryViewState.UNVIEWED -> 1
|
storyViewState != StoryViewState.UNVIEWED && other.storyViewState == StoryViewState.UNVIEWED -> 1
|
||||||
else -> -dateInMilliseconds.compareTo(other.dateInMilliseconds)
|
else -> -dateInMilliseconds.compareTo(other.dateInMilliseconds)
|
||||||
|
|
Loading…
Add table
Reference in a new issue