Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
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
873b85cc
Commit
873b85cc
authored
Apr 14, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix handle back on tour load view
parent
922364ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
13 deletions
+23
-13
DownloadTourDialogController.kt
...ctor/dialogs/tour_chooser/DownloadTourDialogController.kt
+3
-3
TourChooserDialogController.kt
...uctor/dialogs/tour_chooser/TourChooserDialogController.kt
+1
-1
download_tour_layout.xml
app/src/main/res/layout-v23/download_tour_layout.xml
+14
-6
tours_chooser_screen.xml
app/src/main/res/layout/tours_chooser_screen.xml
+5
-3
No files found.
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/tour_chooser/DownloadTourDialogController.kt
View file @
873b85cc
...
...
@@ -125,8 +125,7 @@ class DownloadTourDialogController : Controller {
snackbar
.
showSnackBar
(
error
.
localizedMessage
)
}
))
cancelDownloadText
.
setOnClickListener
{
downloadToken
.
isCancelled
=
true
;
handleBack
()
}
cancelDownloadText
.
setOnClickListener
{
handleBack
()
}
// downloadTour(it.tour.tour_id, downloadToken)
// view.findViewById<View>(R.id.close_current_button).setOnClickListener { handleBack() }
...
...
@@ -147,7 +146,8 @@ class DownloadTourDialogController : Controller {
fun
getLayoutId
()
=
R
.
layout
.
download_tour_layout
override
fun
handleBack
():
Boolean
{
return
router
.
popCurrentController
()
downloadToken
.
isCancelled
=
true
return
router
.
popController
(
this
)
}
...
...
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/tour_chooser/TourChooserDialogController.kt
View file @
873b85cc
...
...
@@ -80,7 +80,7 @@ class ChooseTourDialogController : Controller {
.
subscribe
(
::
onTourClicked
)
)
//
view.findViewById<View>(R.id.close_current_button).setOnClickListener { handleBack() }
view
.
findViewById
<
View
>(
R
.
id
.
close_current_button
).
setOnClickListener
{
handleBack
()
}
view
.
setOnClickListener
{
handleBack
()
}
return
view
...
...
app/src/main/res/layout-v23/download_tour_layout.xml
View file @
873b85cc
...
...
@@ -7,12 +7,20 @@
android:orientation=
"vertical"
>
<ImageView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:id=
"@+id/backgroundDownloader"
android:scaleType=
"centerCrop"
android:background=
"#A62B2727"
/>
android:id=
"@+id/backgroundDownloader"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#A62B2727"
android:scaleType=
"centerCrop"
android:clickable=
"true"
android:focusableInTouchMode=
"true"
android:focusable=
"true"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
/>
<com.google.android.material.textview.MaterialTextView
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
...
...
app/src/main/res/layout/tours_chooser_screen.xml
View file @
873b85cc
...
...
@@ -4,7 +4,9 @@
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"@color/playTourCardOpacityLight"
>
android:background=
"@color/playTourCardOpacityLight"
android:clickable=
"true"
android:focusableInTouchMode=
"true"
>
<com.google.android.material.card.MaterialCardView
android:layout_width=
"0dp"
...
...
@@ -45,8 +47,8 @@
android:focusable=
"true"
android:focusableInTouchMode=
"true"
android:scaleType=
"fitXY"
a
pp:layout_constraintTop_toTopOf=
"parent
"
a
ndroid:src=
"@drawable/ic_close_circled
"
app:layout_constraintEnd_toEndOf=
"parent"
a
ndroid:src=
"@drawable/ic_close_circled
"
/>
a
pp:layout_constraintTop_toTopOf=
"parent
"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file
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