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
9f83fed0
Commit
9f83fed0
authored
Apr 30, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix check to filter for complex stability
parent
1decd3ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
StartPlansDownloadingDialogController.kt
...onductor/dialogs/StartPlansDownloadingDialogController.kt
+2
-3
StartToursDownloadingDialogController.kt
...ogs/tour_chooser/StartToursDownloadingDialogController.kt
+3
-3
No files found.
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/StartPlansDownloadingDialogController.kt
View file @
9f83fed0
...
@@ -124,12 +124,11 @@ class StartPlansDownloadingDialogController : Controller {
...
@@ -124,12 +124,11 @@ class StartPlansDownloadingDialogController : Controller {
view
.
findViewById
<
Button
>(
R
.
id
.
alert_ok_button
)
view
.
findViewById
<
Button
>(
R
.
id
.
alert_ok_button
)
.
clicks
()
.
clicks
()
.
map
{
.
filter
{
if
(!
networkMonitor
.
isConnected
){
if
(!
networkMonitor
.
isConnected
){
snackbar
.
showSnackBar
(
R
.
string
.
no_network_error
)
snackbar
.
showSnackBar
(
R
.
string
.
no_network_error
)
return
@map
null
}
}
else
return
@map
it
networkMonitor
.
isConnected
}
}
.
debounce
(
200
,
TimeUnit
.
MILLISECONDS
)
.
debounce
(
200
,
TimeUnit
.
MILLISECONDS
)
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
...
...
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/tour_chooser/StartToursDownloadingDialogController.kt
View file @
9f83fed0
...
@@ -14,6 +14,7 @@ import com.biganto.visual.roompark.base.RoomParkApplication
...
@@ -14,6 +14,7 @@ import com.biganto.visual.roompark.base.RoomParkApplication
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.data.repository.file.FileModule
import
com.biganto.visual.roompark.data.repository.file.FileModule
import
com.biganto.visual.roompark.data.service.network.INetworkMonitor
import
com.biganto.visual.roompark.data.service.network.INetworkMonitor
import
com.biganto.visual.roompark.data.service.network.NoNetworkException
import
com.biganto.visual.roompark.di.dagger.ActivityModule
import
com.biganto.visual.roompark.di.dagger.ActivityModule
import
com.biganto.visual.roompark.di.dagger.AppComponent
import
com.biganto.visual.roompark.di.dagger.AppComponent
import
com.biganto.visual.roompark.di.dagger.PerScreen
import
com.biganto.visual.roompark.di.dagger.PerScreen
...
@@ -116,12 +117,11 @@ class StartToursDownloadingDialogController : Controller {
...
@@ -116,12 +117,11 @@ class StartToursDownloadingDialogController : Controller {
detachDisposable
.
add
(
detachDisposable
.
add
(
view
.
findViewById
<
Button
>(
R
.
id
.
alert_ok_button
)
view
.
findViewById
<
Button
>(
R
.
id
.
alert_ok_button
)
.
clicks
()
.
clicks
()
.
map
{
.
filter
{
if
(!
networkMonitor
.
isConnected
){
if
(!
networkMonitor
.
isConnected
){
snackbar
.
showSnackBar
(
R
.
string
.
no_network_error
)
snackbar
.
showSnackBar
(
R
.
string
.
no_network_error
)
return
@map
null
}
}
else
return
@map
it
networkMonitor
.
isConnected
}
}
.
debounce
(
200
,
TimeUnit
.
MILLISECONDS
)
.
debounce
(
200
,
TimeUnit
.
MILLISECONDS
)
.
observeOn
(
Schedulers
.
io
())
.
observeOn
(
Schedulers
.
io
())
...
...
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