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
d044c9c2
Commit
d044c9c2
authored
Apr 13, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/subs_fix' into develop
parents
d4a2cfcb
0e15df88
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
13 deletions
+14
-13
subscriptionUseCase.kt
...to/visual/roompark/domain/use_case/subscriptionUseCase.kt
+1
-1
ScreenController.kt
...l/roompark/presentation/screen/albums/ScreenController.kt
+0
-1
ScreenController.kt
...ual/roompark/presentation/screen/deal/ScreenController.kt
+1
-2
ScreenPresenter.kt
...sual/roompark/presentation/screen/deal/ScreenPresenter.kt
+10
-5
status_layout_toolbar.xml
app/src/main/res/layout/status_layout_toolbar.xml
+2
-4
No files found.
app/src/main/java/com/biganto/visual/roompark/domain/use_case/subscriptionUseCase.kt
View file @
d044c9c2
...
...
@@ -69,7 +69,7 @@ class SubscriptionUseCase @Inject constructor(
var
title
=
SubscriptionTopic
.
titleByTopic
(
sub
.
topic
)
if
(
sub
.
topic
is
SubscriptionTopic
.
Deals
){
val
deal
=
user
.
deals
?.
firstOrNull
{
d
->
d
.
i
d
==
sub
.
topic
.
topicId
}
as
DealEntity
user
.
deals
?.
firstOrNull
{
d
->
d
.
estateCrmI
d
==
sub
.
topic
.
topicId
}
as
DealEntity
title
=
"$title № ${deal.estate.number}"
}
TitledSubscriptionModel
(
title
,
sub
)
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/albums/ScreenController.kt
View file @
d044c9c2
...
...
@@ -147,7 +147,6 @@ class AlbumsScreenController :
else
silentCheck
=
false
silentCheck
}
.
doOnNext
{
}
.
debounce
(
600L
,
TimeUnit
.
MILLISECONDS
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
share
()
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/deal/ScreenController.kt
View file @
d044c9c2
...
...
@@ -165,8 +165,7 @@ class DealScreenController :
else
silentCheck
=
false
silentCheck
}
.
doOnNext
{
}
.
debounce
(
600L
,
TimeUnit
.
MILLISECONDS
)
.
debounce
(
400L
,
TimeUnit
.
MILLISECONDS
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/deal/ScreenPresenter.kt
View file @
d044c9c2
...
...
@@ -44,7 +44,7 @@ class DealScreenPresenter @Inject constructor(
.
doOnNext
{
restoreModel
.
deal
=
it
}
.
map
<
DealScreenViewState
>{
deal
->
DealScreenViewState
.
LoadDeal
(
deal
,
interactor
.
getStatusListSync
())
}
}
.
share
()
val
setRead
=
interactor
.
setDealRead
(
dealId
)
...
...
@@ -63,10 +63,15 @@ class DealScreenPresenter @Inject constructor(
.
onErrorReturn
{
DealScreenViewState
.
SubscriptionError
(!
newState
)
}
}
val
fetchSubscription
=
interactor
.
getSubscriptions
(
dealId
)
val
fetchSubscription
=
fetchDeal
.
flatMap
{
fetchedDealViewState
->
interactor
.
getSubscriptions
(
(
fetchedDealViewState
as
DealScreenViewState
.
LoadDeal
).
estate
.
estate_id
)
.
doAfterNext
{
restoreModel
.
sub
=
it
}
.
map
<
DealScreenViewState
>
{
DealScreenViewState
.
SubscriptionStatus
(
it
.
state
)
}
.
startWith
(
Observable
.
just
<
DealScreenViewState
>(
DealScreenViewState
.
Idle
()))
}
val
onStartTours
=
intent
(
DealScreen
::
tourCardClicked
)
...
...
app/src/main/res/layout/status_layout_toolbar.xml
View file @
d044c9c2
...
...
@@ -52,11 +52,9 @@
<ImageView
android:id=
"@+id/back_cross"
android:layout_width=
"24dp"
android:layout_height=
"24dp"
android:layout_marginTop=
"4dp"
android:layout_width=
"32dp"
android:layout_height=
"32dp"
android:layout_marginEnd=
"8dp"
android:layout_marginBottom=
"4dp"
android:fitsSystemWindows=
"true"
android:scaleType=
"centerCrop"
android:tint=
"@color/colorGray"
...
...
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