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
bd7dfa72
Commit
bd7dfa72
authored
Apr 30, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc fix
parent
9f83fed0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
15 deletions
+18
-15
PhotoDialogController.kt
...isual/roompark/conductor/dialogs/PhotoDialogController.kt
+0
-2
DownloadTourDialogController.kt
...ctor/dialogs/tour_chooser/DownloadTourDialogController.kt
+7
-0
ScreenController.kt
...l/roompark/presentation/screen/estate/ScreenController.kt
+3
-7
FavoritesAdapter.kt
...rk/presentation/screen/favorites/util/FavoritesAdapter.kt
+3
-1
photo_viewer.xml
app/src/main/res/layout/photo_viewer.xml
+1
-1
status_layout_toolbar.xml
app/src/main/res/layout/status_layout_toolbar.xml
+4
-4
No files found.
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/PhotoDialogController.kt
View file @
bd7dfa72
...
...
@@ -11,7 +11,6 @@ import android.widget.ImageView
import
android.widget.ProgressBar
import
androidx.annotation.LayoutRes
import
androidx.core.os.bundleOf
import
androidx.recyclerview.widget.RecyclerView
import
com.biganto.visual.roompark.R
import
com.bluelinelabs.conductor.Controller
import
com.bumptech.glide.Glide
...
...
@@ -38,7 +37,6 @@ class PhotoDialogController : Controller {
constructor
(
photoUrl
:
String
)
:
super
(
bundleOf
(
PHOTO_URL_KEY
to
photoUrl
))
lateinit
var
recyclerView
:
RecyclerView
@SuppressLint
(
"SourceLockedOrientationActivity"
)
override
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
):
View
{
...
...
app/src/main/java/com/biganto/visual/roompark/conductor/dialogs/tour_chooser/DownloadTourDialogController.kt
View file @
bd7dfa72
...
...
@@ -10,6 +10,8 @@ import android.widget.ProgressBar
import
androidx.annotation.LayoutRes
import
androidx.core.os.bundleOf
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.IBottomNavigation
import
com.biganto.visual.roompark.base.ICollapsingToolBar
import
com.biganto.visual.roompark.base.RoomParkApplication
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.di.dagger.ActivityModule
...
...
@@ -84,6 +86,11 @@ class DownloadTourDialogController : Controller {
super
.
onDetach
(
view
)
}
private
val
bottomNavigationController
:
IBottomNavigation
by
lazy
{
rpActivity
}
private
val
toolbar
:
ICollapsingToolBar
by
lazy
{
rpActivity
}
override
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
):
View
{
val
view
=
inflater
.
inflate
(
getLayoutId
(),
container
,
false
)
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/estate/ScreenController.kt
View file @
bd7dfa72
...
...
@@ -200,13 +200,9 @@ class EstateScreenController :
private
fun
setToolbar
(){
toolBar
.
setToolbar
(
null
,
StatusToolbarModel
())
toolBar
.
statusToolbar
.
findViewById
<
View
>(
R
.
id
.
back_cross
).
let
{
detachDisposable
.
add
(
it
.
clicks
()
.
subscribeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
{
handleBack
()
}
)
}
toolBar
.
statusToolbar
.
findViewById
<
View
>(
R
.
id
.
back_cross
)
.
setOnClickListener
{
handleBack
()
}
detachDisposable
.
add
(
flatScroll
.
scrollChangeEvents
()
// .debounce (25,TimeUnit.MILLISECONDS)
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/favorites/util/FavoritesAdapter.kt
View file @
bd7dfa72
...
...
@@ -67,7 +67,9 @@ class FavoriteViewHolder(itemView: View) : CommonViewHolder<EstateModel>(itemVie
}
val
onStartTourObs
:
Observable
<
EstateModel
>
get
()
=
startTour
.
clicks
().
filter
{
bindedModel
.
availableStatus
}.
map
{
bindedModel
}
startTour
.
clicks
()
// .filter { bindedModel.availableStatus }
.
map
{
bindedModel
}
override
fun
onViewBound
(
model
:
EstateModel
)
{
estateTitle
.
text
=
...
...
app/src/main/res/layout/photo_viewer.xml
View file @
bd7dfa72
...
...
@@ -3,7 +3,7 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:background=
"#000000"
>
android:background=
"#
FF
000000"
>
<com.github.chrisbanes.photoview.PhotoView
...
...
app/src/main/res/layout/status_layout_toolbar.xml
View file @
bd7dfa72
...
...
@@ -50,11 +50,11 @@
<ImageView
android:id=
"@+id/back_cross"
android:layout_width=
"
32
dp"
android:layout_height=
"
32
dp"
android:layout_marginEnd=
"
8
dp"
android:layout_width=
"
48
dp"
android:layout_height=
"
24
dp"
android:layout_marginEnd=
"
0
dp"
android:fitsSystemWindows=
"true"
android:scaleType=
"
centerCrop
"
android:scaleType=
"
fitCenter
"
android:tint=
"@color/colorGray"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
...
...
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