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
2bf2aafc
Commit
2bf2aafc
authored
Jan 23, 2020
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update toolbar and bottom bar hide/disappear throush all screens
parent
0af0d011
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
40 additions
and
144 deletions
+40
-144
RoomParkMainActivity.kt
.../com/biganto/visual/roompark/base/RoomParkMainActivity.kt
+0
-1
BigantoBaseController.kt
...iganto/visual/roompark/conductor/BigantoBaseController.kt
+3
-1
ScreenController.kt
...l/roompark/presentation/screen/albums/ScreenController.kt
+0
-3
ScreenController.kt
.../roompark/presentation/screen/article/ScreenController.kt
+1
-1
ScreenController.kt
...ual/roompark/presentation/screen/auth/ScreenController.kt
+0
-4
ScreenController.kt
...ual/roompark/presentation/screen/deal/ScreenController.kt
+2
-12
ScreenController.kt
...al/roompark/presentation/screen/deals/ScreenController.kt
+1
-6
ScreenController.kt
...l/roompark/presentation/screen/estate/ScreenController.kt
+2
-12
ScreenController.kt
...oompark/presentation/screen/favorites/ScreenController.kt
+1
-5
ScreenController.kt
...oompark/presentation/screen/feed_list/ScreenController.kt
+12
-7
ScreenController.kt
...al/roompark/presentation/screen/feeds/ScreenController.kt
+1
-2
HomeController.kt
...isual/roompark/presentation/screen/home/HomeController.kt
+4
-32
BottomNavigationController.kt
...on/screen/home/home_routing/BottomNavigationController.kt
+4
-11
HomeBottomNavigationController.kt
...creen/home/home_routing/HomeBottomNavigationController.kt
+0
-3
ScreenController.kt
...al/roompark/presentation/screen/photo/ScreenController.kt
+0
-7
ScreenController.kt
...roompark/presentation/screen/settings/ScreenController.kt
+6
-8
ScreenController.kt
...l/roompark/presentation/screen/splash/ScreenController.kt
+1
-8
ScreenController.kt
.../roompark/presentation/screen/to_flat/ScreenController.kt
+1
-7
ScreenController.kt
.../roompark/presentation/screen/web_cam/ScreenController.kt
+1
-14
No files found.
app/src/main/java/com/biganto/visual/roompark/base/RoomParkMainActivity.kt
View file @
2bf2aafc
...
@@ -99,7 +99,6 @@ class RoomParkMainActivity(
...
@@ -99,7 +99,6 @@ class RoomParkMainActivity(
}
else
appBar
.
setGone
(
false
)
}
else
appBar
.
setGone
(
false
)
showAll
()
showAll
()
appBarScrollable
(
false
)
appBarScrollable
(
false
)
Timber
.
d
(
"NOTGONE"
)
headerToolbar
.
setGone
(
header
==
null
)
headerToolbar
.
setGone
(
header
==
null
)
statusToolbar
.
setGone
(
status
==
null
)
statusToolbar
.
setGone
(
status
==
null
)
header
?.
let
{
header
?.
let
{
...
...
app/src/main/java/com/biganto/visual/roompark/conductor/BigantoBaseController.kt
View file @
2bf2aafc
...
@@ -11,6 +11,7 @@ import androidx.annotation.LayoutRes
...
@@ -11,6 +11,7 @@ import androidx.annotation.LayoutRes
import
androidx.annotation.StringRes
import
androidx.annotation.StringRes
import
butterknife.ButterKnife
import
butterknife.ButterKnife
import
com.biganto.visual.roompark.R
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.ICollapsingToolBar
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.conductor.mosby.mvi.BigantoMviController
import
com.biganto.visual.roompark.conductor.mosby.mvi.BigantoMviController
...
@@ -46,6 +47,7 @@ abstract class BigantoBaseController<VS : BigantoBaseViewState,V: BigantoBaseCon
...
@@ -46,6 +47,7 @@ abstract class BigantoBaseController<VS : BigantoBaseViewState,V: BigantoBaseCon
protected
abstract
fun
getLayoutId
():
Int
protected
abstract
fun
getLayoutId
():
Int
lateinit
var
toolBar
:
ICollapsingToolBar
lateinit
var
toolBar
:
ICollapsingToolBar
lateinit
var
bottomNavigation
:
IBottomNavigation
lateinit
var
snackbar
:
ISnackBarProvider
lateinit
var
snackbar
:
ISnackBarProvider
override
fun
onAttach
(
view
:
View
)
{
override
fun
onAttach
(
view
:
View
)
{
...
@@ -74,9 +76,9 @@ abstract class BigantoBaseController<VS : BigantoBaseViewState,V: BigantoBaseCon
...
@@ -74,9 +76,9 @@ abstract class BigantoBaseController<VS : BigantoBaseViewState,V: BigantoBaseCon
// instantiate the view
// instantiate the view
ButterKnife
.
bind
(
this
,
view
)
ButterKnife
.
bind
(
this
,
view
)
(
activity
as
RoomParkMainActivity
).
let
{
(
activity
as
RoomParkMainActivity
).
let
{
snackbar
=
ActivityModule
.
provideSnackBar
(
it
)
snackbar
=
ActivityModule
.
provideSnackBar
(
it
)
toolBar
=
it
toolBar
=
it
bottomNavigation
=
it
snackbar
.
bindRootView
(
toolBar
.
coordinatorLayout
)
snackbar
.
bindRootView
(
toolBar
.
coordinatorLayout
)
}
}
onViewBound
(
view
)
onViewBound
(
view
)
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/albums/ScreenController.kt
View file @
2bf2aafc
...
@@ -11,7 +11,6 @@ import androidx.recyclerview.widget.LinearLayoutManager
...
@@ -11,7 +11,6 @@ import androidx.recyclerview.widget.LinearLayoutManager
import
androidx.recyclerview.widget.RecyclerView
import
androidx.recyclerview.widget.RecyclerView
import
butterknife.BindView
import
butterknife.BindView
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.IBottomNavigation
import
com.biganto.visual.roompark.base.RoomParkApplication
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.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
...
@@ -132,8 +131,6 @@ class AlbumsScreenController :
...
@@ -132,8 +131,6 @@ class AlbumsScreenController :
// @Inject
// @Inject
// lateinit var ac: RoomParkMainActivity
// lateinit var ac: RoomParkMainActivity
@Inject
lateinit
var
bottomNavigation
:
IBottomNavigation
override
fun
render
(
viewState
:
AlbumsScreenViewState
)
{
override
fun
render
(
viewState
:
AlbumsScreenViewState
)
{
when
(
viewState
){
when
(
viewState
){
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/article/ScreenController.kt
View file @
2bf2aafc
...
@@ -12,7 +12,6 @@ import androidx.core.text.HtmlCompat
...
@@ -12,7 +12,6 @@ import androidx.core.text.HtmlCompat
import
butterknife.BindView
import
butterknife.BindView
import
butterknife.OnClick
import
butterknife.OnClick
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.HeaderToolbarModel
import
com.biganto.visual.roompark.base.RoomParkApplication
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.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
...
@@ -88,6 +87,7 @@ class ArticleScreenController :
...
@@ -88,6 +87,7 @@ class ArticleScreenController :
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
toolBar
.
setToolbar
()
toolBar
.
setToolbar
()
bottomNavigation
.
hide
()
bindRecycler
()
bindRecycler
()
}
}
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/auth/ScreenController.kt
View file @
2bf2aafc
...
@@ -3,7 +3,6 @@ package com.biganto.visual.roompark.presentation.screen.auth
...
@@ -3,7 +3,6 @@ package com.biganto.visual.roompark.presentation.screen.auth
import
android.view.View
import
android.view.View
import
butterknife.BindView
import
butterknife.BindView
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.IBottomNavigation
import
com.biganto.visual.roompark.base.RoomParkApplication
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.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
...
@@ -75,9 +74,6 @@ class AuthScreenController :
...
@@ -75,9 +74,6 @@ class AuthScreenController :
)
)
}
}
@Inject
lateinit
var
bottomNavigation
:
IBottomNavigation
@Inject
@Inject
override
lateinit
var
injectedPresenter
:
AuthScreenPresenter
override
lateinit
var
injectedPresenter
:
AuthScreenPresenter
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/deal/ScreenController.kt
View file @
2bf2aafc
...
@@ -75,18 +75,6 @@ class DealScreenController :
...
@@ -75,18 +75,6 @@ class DealScreenController :
@BindView
(
R
.
id
.
deal_to_pay_value_text_view
)
lateinit
var
dealSumToPay
:
MaterialTextView
@BindView
(
R
.
id
.
deal_to_pay_value_text_view
)
lateinit
var
dealSumToPay
:
MaterialTextView
private
fun
setToolbar
(){
private
fun
setToolbar
(){
toolBar
.
showAll
()
toolBar
.
appBar
.
setExpanded
(
false
,
false
)
toolBar
.
appBar
.
liftOnScrollTargetViewId
=
R
.
id
.
favorites_cards_recycler_view
toolBar
.
appBar
.
setLiftable
(
true
)
toolBar
.
appBarScrollable
(
false
)
Timber
.
d
(
"content insets : ${toolBar.topAppBar.contentInsetEnd}"
)
activity
?.
actionBar
?.
setDisplayShowTitleEnabled
(
false
)
Timber
.
d
(
" bakc: ${toolBar.headerToolbarBack}"
)
toolBar
.
setToolbar
(
HeaderToolbarModel
(
toolBar
.
setToolbar
(
HeaderToolbarModel
(
true
true
,
resources
?.
getString
(
R
.
string
.
deal_back_chevron_title
)
,
resources
?.
getString
(
R
.
string
.
deal_back_chevron_title
)
...
@@ -103,6 +91,7 @@ class DealScreenController :
...
@@ -103,6 +91,7 @@ class DealScreenController :
)
)
}
}
detachDisposable
.
add
(
detachDisposable
.
add
(
dealContainer
.
scrollChangeEvents
()
dealContainer
.
scrollChangeEvents
()
.
subscribeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribeOn
(
AndroidSchedulers
.
mainThread
())
...
@@ -141,6 +130,7 @@ class DealScreenController :
...
@@ -141,6 +130,7 @@ class DealScreenController :
}
}
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
bottomNavigation
.
hide
()
setToolbar
()
setToolbar
()
bindRecycler
()
bindRecycler
()
}
}
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/deals/ScreenController.kt
View file @
2bf2aafc
...
@@ -50,12 +50,6 @@ class DealsScreenController :
...
@@ -50,12 +50,6 @@ class DealsScreenController :
}
}
private
fun
setToolbar
(){
private
fun
setToolbar
(){
toolBar
.
showAll
()
toolBar
.
appBar
.
setExpanded
(
false
,
false
)
toolBar
.
appBar
.
liftOnScrollTargetViewId
=
R
.
id
.
favorites_cards_recycler_view
toolBar
.
appBar
.
setLiftable
(
true
)
toolBar
.
appBarScrollable
(
false
)
dealsRecyclerView
.
isNestedScrollingEnabled
=
false
dealsRecyclerView
.
isNestedScrollingEnabled
=
false
toolBar
.
setToolbar
(
toolBar
.
setToolbar
(
...
@@ -71,6 +65,7 @@ class DealsScreenController :
...
@@ -71,6 +65,7 @@ class DealsScreenController :
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
bottomNavigation
.
show
()
setToolbar
()
setToolbar
()
bindRecycler
()
bindRecycler
()
detachDisposable
.
addAll
(
detachDisposable
.
addAll
(
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/estate/ScreenController.kt
View file @
2bf2aafc
...
@@ -161,17 +161,7 @@ class EstateScreenController :
...
@@ -161,17 +161,7 @@ class EstateScreenController :
private
fun
setToolbar
(){
private
fun
setToolbar
(){
toolBar
.
showAll
()
toolBar
.
setToolbar
(
null
,
StatusToolbarModel
())
// toolBar.appBar.setExpanded(false,false)
toolBar
.
topAppBar
.
title
=
"ИЗБРАННОЕ"
toolBar
.
appBar
.
liftOnScrollTargetViewId
=
R
.
id
.
favorites_cards_recycler_view
toolBar
.
appBar
.
setLiftable
(
true
)
toolBar
.
appBarScrollable
(
false
)
toolBar
.
setToolbar
(
null
,
StatusToolbarModel
()
)
toolBar
.
statusToolbar
.
findViewById
<
View
>(
R
.
id
.
back_cross
).
let
{
toolBar
.
statusToolbar
.
findViewById
<
View
>(
R
.
id
.
back_cross
).
let
{
detachDisposable
.
add
(
detachDisposable
.
add
(
it
.
clicks
()
it
.
clicks
()
...
@@ -179,7 +169,6 @@ class EstateScreenController :
...
@@ -179,7 +169,6 @@ class EstateScreenController :
.
subscribe
{
handleBack
()
}
.
subscribe
{
handleBack
()
}
)
)
}
}
detachDisposable
.
add
(
detachDisposable
.
add
(
flatScroll
.
scrollChangeEvents
()
flatScroll
.
scrollChangeEvents
()
// .debounce (25,TimeUnit.MILLISECONDS)
// .debounce (25,TimeUnit.MILLISECONDS)
...
@@ -219,6 +208,7 @@ class EstateScreenController :
...
@@ -219,6 +208,7 @@ class EstateScreenController :
}
}
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
bottomNavigation
.
hide
()
setToolbar
()
setToolbar
()
bindRecycler
()
bindRecycler
()
}
}
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/favorites/ScreenController.kt
View file @
2bf2aafc
...
@@ -40,11 +40,6 @@ class FavoritesScreenController :
...
@@ -40,11 +40,6 @@ class FavoritesScreenController :
private
fun
setToolbar
(){
private
fun
setToolbar
(){
toolBar
.
showAll
()
toolBar
.
appBar
.
setExpanded
(
false
,
false
)
toolBar
.
appBar
.
liftOnScrollTargetViewId
=
R
.
id
.
favorites_cards_recycler_view
toolBar
.
appBar
.
setLiftable
(
true
)
toolBar
.
appBarScrollable
(
false
)
favoritesRecyclerView
.
isNestedScrollingEnabled
=
false
favoritesRecyclerView
.
isNestedScrollingEnabled
=
false
toolBar
.
setToolbar
(
toolBar
.
setToolbar
(
...
@@ -70,6 +65,7 @@ class FavoritesScreenController :
...
@@ -70,6 +65,7 @@ class FavoritesScreenController :
}
}
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
bottomNavigation
.
show
()
setToolbar
()
setToolbar
()
bindRecycler
()
bindRecycler
()
detachDisposable
.
addAll
(
detachDisposable
.
addAll
(
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/feed_list/ScreenController.kt
View file @
2bf2aafc
...
@@ -46,7 +46,7 @@ class ArticlesScreenController :
...
@@ -46,7 +46,7 @@ class ArticlesScreenController :
private
fun
setToolbar
()
{
private
fun
setToolbar
()
{
//
articlesRecyclerView.isNestedScrollingEnabled = false
articlesRecyclerView
.
isNestedScrollingEnabled
=
false
toolBar
.
setToolbar
(
toolBar
.
setToolbar
(
HeaderToolbarModel
(
HeaderToolbarModel
(
...
@@ -71,17 +71,22 @@ class ArticlesScreenController :
...
@@ -71,17 +71,22 @@ class ArticlesScreenController :
if
(
articlesRecyclerView
.
itemDecorationCount
==
0
)
if
(
articlesRecyclerView
.
itemDecorationCount
==
0
)
articlesRecyclerView
.
addItemDecoration
(
articlesRecyclerView
.
addItemDecoration
(
CeilsDecoration
(
1
CeilsDecoration
(
,
resources
?.
getDimensionPixelSize
(
R
.
dimen
.
ceil_grid_padding
))
1
,
resources
?.
getDimensionPixelSize
(
R
.
dimen
.
ceil_grid_padding
)
)
)
)
detachDisposable
.
add
(
(
articlesRecyclerView
.
adapter
as
ArticlesAdapter
)
(
articlesRecyclerView
.
adapter
as
ArticlesAdapter
)
.
onItemClicked
.
subscribe
{
.
onItemClicked
.
subscribe
{
router
.
pushController
(
RouterTransaction
.
with
(
ArticleScreenController
(
it
.
articleId
)))
router
.
pushController
(
RouterTransaction
.
with
(
ArticleScreenController
(
it
.
articleId
)))
}
}
)
}
}
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
bottomNavigation
.
hide
()
setToolbar
()
setToolbar
()
bindRecycler
()
bindRecycler
()
}
}
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/feeds/ScreenController.kt
View file @
2bf2aafc
...
@@ -139,8 +139,7 @@ class FeedsScreenController :
...
@@ -139,8 +139,7 @@ class FeedsScreenController :
.
map
{
storedFeedsList
[
it
.
position
]
}
.
map
{
storedFeedsList
[
it
.
position
]
}
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
// toolBar.hideAll()
bottomNavigation
.
show
()
toolBar
.
setToolbar
()
toolBar
.
setToolbar
()
bindRecycler
()
bindRecycler
()
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/home/HomeController.kt
View file @
2bf2aafc
package
com.biganto.visual.roompark.presentation.screen.home
package
com.biganto.visual.roompark.presentation.screen.home
import
android.content.ContentValues.TAG
import
android.util.Log
import
android.view.View
import
android.view.View
import
androidx.viewpager.widget.ViewPager
import
androidx.viewpager.widget.ViewPager
import
butterknife.BindView
import
butterknife.BindView
import
com.biganto.visual.roompark.R
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.RoomParkApplication
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.base.RoomParkMainActivity
import
com.biganto.visual.roompark.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
...
@@ -50,37 +46,19 @@ class HomeController :
...
@@ -50,37 +46,19 @@ class HomeController :
getComponent
()
getComponent
()
}
}
@BindView
(
R
.
id
.
home_router_host
)
@BindView
(
R
.
id
.
home_router_host
)
lateinit
var
viewpager
:
ViewPager
lateinit
var
viewpager
:
ViewPager
@Inject
lateinit
var
tb
:
ICollapsingToolBar
@Inject
lateinit
var
bottomNavigation
:
IBottomNavigation
@Inject
@Inject
override
lateinit
var
injectedPresenter
:
HomeScreenPresenter
override
lateinit
var
injectedPresenter
:
HomeScreenPresenter
lateinit
var
pageAdapter
:
BNVRouterPagerAdapter
private
lateinit
var
pageAdapter
:
BNVRouterPagerAdapter
// @Inject
// lateinit var snacky:ISnackBarProvider
fun
getComponent
()
=
DaggerHomeScreenComponent
fun
getComponent
()
=
DaggerHomeScreenComponent
.
factory
()
.
factory
()
.
create
(
RoomParkApplication
.
component
,
activity
as
RoomParkMainActivity
)
.
create
(
RoomParkApplication
.
component
,
activity
as
RoomParkMainActivity
)
.
inject
(
this
)
.
inject
(
this
)
// @Inject
// lateinit var ac: RoomParkMainActivity
override
fun
render
(
viewState
:
HomeScreenViewState
)
{
override
fun
render
(
viewState
:
HomeScreenViewState
)
{
when
(
viewState
){
when
(
viewState
){
is
HomeScreenViewState
.
Idle
->
render
(
viewState
)
is
HomeScreenViewState
.
Idle
->
render
(
viewState
)
...
@@ -89,13 +67,9 @@ class HomeController :
...
@@ -89,13 +67,9 @@ class HomeController :
}
}
private
fun
render
(
viewState
:
HomeScreenViewState
.
Idle
){
private
fun
render
(
viewState
:
HomeScreenViewState
.
Idle
){
}
}
private
fun
render
(
viewState
:
HomeScreenViewState
.
ToScreen
){
private
fun
render
(
viewState
:
HomeScreenViewState
.
ToScreen
){
// snacky.showSnackBar("lul")
}
}
...
@@ -112,14 +86,12 @@ class HomeController :
...
@@ -112,14 +86,12 @@ class HomeController :
if
(
backStackResult
if
(
backStackResult
&&
backStackSizeCondition
&&
backStackSizeCondition
)
)
return
backStackResult
return
backStackResult
}
else
{
}
else
{
Log
.
e
(
TAG
,
"handleBack called with getChildRouter(currentlySelectedItemId) == null."
,
Timber
.
e
(
IllegalStateException
(
IllegalStateException
(
"handleBack called with getChildRouter(currentlySelectedItemId) == null."
)
"handleBack called with getChildRouter(currentlySelectedItemId) == null."
)
)
,
"handleBack called with getChildRouter(currentlySelectedItemId) == null."
)
}
}
return
false
return
false
}
}
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/home/home_routing/BottomNavigationController.kt
View file @
2bf2aafc
...
@@ -3,7 +3,9 @@ package com.biganto.visual.roompark.presentation.screen.home.home_routing
...
@@ -3,7 +3,9 @@ package com.biganto.visual.roompark.presentation.screen.home.home_routing
import
android.os.Bundle
import
android.os.Bundle
import
android.util.Log
import
android.util.Log
import
android.util.SparseArray
import
android.util.SparseArray
import
android.view.*
import
android.view.Menu
import
android.view.MenuItem
import
android.view.View
import
androidx.annotation.IdRes
import
androidx.annotation.IdRes
import
androidx.annotation.NonNull
import
androidx.annotation.NonNull
import
com.biganto.visual.roompark.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
...
@@ -65,17 +67,8 @@ abstract class BottomNavigationController :
...
@@ -65,17 +67,8 @@ abstract class BottomNavigationController :
constructor
(
args
:
Bundle
)
:
super
(
args
)
constructor
(
args
:
Bundle
)
:
super
(
args
)
@NonNull
override
fun
onViewBound
(
v
:
View
)
{
protected
fun
inflateView
(
@NonNull
inflater
:
LayoutInflater
,
@NonNull
container
:
ViewGroup
):
View
{
return
inflater
.
inflate
(
getLayoutId
(),
container
,
false
)
}
override
fun
onCreateView
(
inflater
:
LayoutInflater
,
container
:
ViewGroup
):
View
{
val
view
=
inflateView
(
inflater
,
container
)
retainViewMode
=
RetainViewMode
.
RELEASE_DETACH
retainViewMode
=
RetainViewMode
.
RELEASE_DETACH
Timber
.
d
(
" onCreateView: ${this::class}"
)
onViewBound
(
view
)
return
view
}
}
@IdRes
@IdRes
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/home/home_routing/HomeBottomNavigationController.kt
View file @
2bf2aafc
...
@@ -48,9 +48,6 @@ class HomeBottomNavigationController(@IdRes toPage: Int = R.id.tab_feeds)
...
@@ -48,9 +48,6 @@ class HomeBottomNavigationController(@IdRes toPage: Int = R.id.tab_feeds)
@Inject
@Inject
lateinit
var
tb
:
ICollapsingToolBar
lateinit
var
tb
:
ICollapsingToolBar
@Inject
lateinit
var
bottomNavigation
:
IBottomNavigation
@Inject
@Inject
override
lateinit
var
injectedPresenter
:
HomeScreenPresenter
override
lateinit
var
injectedPresenter
:
HomeScreenPresenter
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/photo/ScreenController.kt
View file @
2bf2aafc
...
@@ -6,7 +6,6 @@ import androidx.core.os.bundleOf
...
@@ -6,7 +6,6 @@ import androidx.core.os.bundleOf
import
androidx.viewpager2.widget.ViewPager2
import
androidx.viewpager2.widget.ViewPager2
import
butterknife.BindView
import
butterknife.BindView
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.IBottomNavigation
import
com.biganto.visual.roompark.base.RoomParkApplication
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.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
...
@@ -72,12 +71,6 @@ class PhotoScreenController :
...
@@ -72,12 +71,6 @@ class PhotoScreenController :
,
args
.
getInt
(
SELECTED_PHOTO_KEY
))
,
args
.
getInt
(
SELECTED_PHOTO_KEY
))
.
inject
(
this
)
.
inject
(
this
)
// @Inject
// lateinit var ac: RoomParkMainActivity
@Inject
lateinit
var
bottomNavigation
:
IBottomNavigation
override
fun
render
(
viewState
:
PhotoScreenViewState
)
{
override
fun
render
(
viewState
:
PhotoScreenViewState
)
{
Timber
.
d
(
"render: $viewState"
)
Timber
.
d
(
"render: $viewState"
)
when
(
viewState
){
when
(
viewState
){
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/settings/ScreenController.kt
View file @
2bf2aafc
...
@@ -74,12 +74,7 @@ class SettingsScreenController :
...
@@ -74,12 +74,7 @@ class SettingsScreenController :
private
fun
setToolbar
(){
private
fun
setToolbar
(){
toolBar
.
showAll
()
toolBar
.
appBar
.
setExpanded
(
false
,
true
)
toolBar
.
appBar
.
liftOnScrollTargetViewId
=
R
.
id
.
nestedScrollContainer
toolBar
.
appBar
.
liftOnScrollTargetViewId
=
R
.
id
.
nestedScrollContainer
toolBar
.
appBar
.
setLiftable
(
true
)
toolBar
.
appBar
.
setLifted
(
true
)
toolBar
.
appBarScrollable
(
false
)
pushRecycler
.
isNestedScrollingEnabled
=
false
pushRecycler
.
isNestedScrollingEnabled
=
false
cachedRecycler
.
isNestedScrollingEnabled
=
false
cachedRecycler
.
isNestedScrollingEnabled
=
false
...
@@ -90,8 +85,7 @@ class SettingsScreenController :
...
@@ -90,8 +85,7 @@ class SettingsScreenController :
)
)
}
}
override
fun
onViewBound
(
v
:
View
)
{
private
fun
bindRecycler
(){
setToolbar
()
pushRecycler
.
isNestedScrollingEnabled
=
true
pushRecycler
.
isNestedScrollingEnabled
=
true
pushRecycler
.
layoutManager
=
pushRecycler
.
layoutManager
=
LinearLayoutManager
(
activity
,
RecyclerView
.
VERTICAL
,
false
)
LinearLayoutManager
(
activity
,
RecyclerView
.
VERTICAL
,
false
)
...
@@ -103,8 +97,12 @@ class SettingsScreenController :
...
@@ -103,8 +97,12 @@ class SettingsScreenController :
LinearLayoutManager
(
activity
,
RecyclerView
.
VERTICAL
,
false
)
LinearLayoutManager
(
activity
,
RecyclerView
.
VERTICAL
,
false
)
cachedRecycler
.
adapter
=
CahcedListAdapter
()
cachedRecycler
.
adapter
=
CahcedListAdapter
()
cachedRecycler
.
itemAnimator
=
null
cachedRecycler
.
itemAnimator
=
null
}
override
fun
onViewBound
(
v
:
View
)
{
bottomNavigation
.
show
()
setToolbar
()
bindRecycler
()
}
}
override
fun
render
(
viewState
:
SettingsScreenViewState
)
{
override
fun
render
(
viewState
:
SettingsScreenViewState
)
{
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/splash/ScreenController.kt
View file @
2bf2aafc
...
@@ -2,7 +2,6 @@ package com.biganto.visual.roompark.presentation.screen.splash
...
@@ -2,7 +2,6 @@ package com.biganto.visual.roompark.presentation.screen.splash
import
android.view.View
import
android.view.View
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.IBottomNavigation
import
com.biganto.visual.roompark.base.RoomParkApplication
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.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
...
@@ -24,7 +23,7 @@ class SplashScreenController :
...
@@ -24,7 +23,7 @@ class SplashScreenController :
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
//
toolBar.setToolbar()
toolBar
.
setToolbar
()
bottomNavigation
.
hide
()
bottomNavigation
.
hide
()
}
}
...
@@ -46,12 +45,6 @@ class SplashScreenController :
...
@@ -46,12 +45,6 @@ class SplashScreenController :
.
create
(
RoomParkApplication
.
component
,
activity
as
RoomParkMainActivity
)
.
create
(
RoomParkApplication
.
component
,
activity
as
RoomParkMainActivity
)
.
inject
(
this
)
.
inject
(
this
)
// @Inject
// lateinit var ac: RoomParkMainActivity
@Inject
lateinit
var
bottomNavigation
:
IBottomNavigation
override
fun
render
(
viewState
:
SplashScreenViewState
)
{
override
fun
render
(
viewState
:
SplashScreenViewState
)
{
when
(
viewState
){
when
(
viewState
){
is
SplashScreenViewState
.
Idle
->
render
(
viewState
)
is
SplashScreenViewState
.
Idle
->
render
(
viewState
)
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/to_flat/ScreenController.kt
View file @
2bf2aafc
...
@@ -61,13 +61,6 @@ class FindFlatScreenController :
...
@@ -61,13 +61,6 @@ class FindFlatScreenController :
}
}
private
fun
setToolbar
(){
private
fun
setToolbar
(){
toolBar
.
showAll
()
toolBar
.
appBar
.
setExpanded
(
false
,
true
)
toolBar
.
appBar
.
liftOnScrollTargetViewId
=
R
.
id
.
favorites_cards_recycler_view
toolBar
.
appBar
.
setLiftable
(
true
)
toolBar
.
appBar
.
setLifted
(
true
)
toolBar
.
appBarScrollable
(
false
)
toolBar
.
setToolbar
(
toolBar
.
setToolbar
(
HeaderToolbarModel
(
HeaderToolbarModel
(
false
,
null
false
,
null
...
@@ -98,6 +91,7 @@ class FindFlatScreenController :
...
@@ -98,6 +91,7 @@ class FindFlatScreenController :
)
)
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
bottomNavigation
.
show
()
setToolbar
()
setToolbar
()
estateTabs
.
forEach
{
estate
->
estateTabs
.
forEach
{
estate
->
val
tab
=
flatTabs
.
newTab
()
val
tab
=
flatTabs
.
newTab
()
...
...
app/src/main/java/com/biganto/visual/roompark/presentation/screen/web_cam/ScreenController.kt
View file @
2bf2aafc
...
@@ -6,7 +6,6 @@ import android.view.View
...
@@ -6,7 +6,6 @@ import android.view.View
import
androidx.core.os.bundleOf
import
androidx.core.os.bundleOf
import
butterknife.BindView
import
butterknife.BindView
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.R
import
com.biganto.visual.roompark.base.IBottomNavigation
import
com.biganto.visual.roompark.base.RoomParkApplication
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.conductor.BigantoBaseController
import
com.biganto.visual.roompark.conductor.BigantoBaseController
...
@@ -51,7 +50,7 @@ class WebCamScreenController :
...
@@ -51,7 +50,7 @@ class WebCamScreenController :
override
fun
onViewBound
(
v
:
View
)
{
override
fun
onViewBound
(
v
:
View
)
{
toolBar
.
hideAll
()
toolBar
.
setToolbar
()
bottomNavigation
.
hide
()
bottomNavigation
.
hide
()
}
}
...
@@ -62,12 +61,6 @@ class WebCamScreenController :
...
@@ -62,12 +61,6 @@ class WebCamScreenController :
@Inject
@Inject
override
lateinit
var
injectedPresenter
:
WebCamScreenPresenter
override
lateinit
var
injectedPresenter
:
WebCamScreenPresenter
// @Inject
// lateinit var snacky:ISnackBarProvider
lateinit
var
rpActivity
:
RoomParkMainActivity
fun
getComponent
()
=
DaggerWebCamScreenComponent
fun
getComponent
()
=
DaggerWebCamScreenComponent
.
factory
()
.
factory
()
.
create
(
RoomParkApplication
.
component
.
create
(
RoomParkApplication
.
component
...
@@ -75,12 +68,6 @@ class WebCamScreenController :
...
@@ -75,12 +68,6 @@ class WebCamScreenController :
,
args
.
getInt
(
SELECTED_CAM_INDEX_KEY
))
,
args
.
getInt
(
SELECTED_CAM_INDEX_KEY
))
.
inject
(
this
)
.
inject
(
this
)
// @Inject
// lateinit var ac: RoomParkMainActivity
@Inject
lateinit
var
bottomNavigation
:
IBottomNavigation
override
fun
render
(
viewState
:
WebCamScreenViewState
)
{
override
fun
render
(
viewState
:
WebCamScreenViewState
)
{
when
(
viewState
){
when
(
viewState
){
is
WebCamScreenViewState
.
Idle
->
render
(
viewState
)
is
WebCamScreenViewState
.
Idle
->
render
(
viewState
)
...
...
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