Removes top bar back arrow
This commit is contained in:
parent
93264812c0
commit
a07c1b8afa
@ -145,10 +145,6 @@ class HomeDetailFragment @Inject constructor(
|
|||||||
updateTabVisibilitySafely(R.id.bottom_action_dial_pad, showDialPadTab)
|
updateTabVisibilitySafely(R.id.bottom_action_dial_pad, showDialPadTab)
|
||||||
}
|
}
|
||||||
|
|
||||||
views.groupToolbarNavigateUp.setOnClickListener {
|
|
||||||
navigateBack()
|
|
||||||
}
|
|
||||||
|
|
||||||
viewModel.observeViewEvents { viewEvent ->
|
viewModel.observeViewEvents { viewEvent ->
|
||||||
when (viewEvent) {
|
when (viewEvent) {
|
||||||
HomeDetailViewEvents.CallStarted -> handleCallStarted()
|
HomeDetailViewEvents.CallStarted -> handleCallStarted()
|
||||||
@ -307,13 +303,9 @@ class HomeDetailFragment @Inject constructor(
|
|||||||
private fun onSpaceChange(spaceSummary: RoomSummary?) {
|
private fun onSpaceChange(spaceSummary: RoomSummary?) {
|
||||||
if (spaceSummary == null) {
|
if (spaceSummary == null) {
|
||||||
views.groupToolbarSpaceTitleView.isVisible = false
|
views.groupToolbarSpaceTitleView.isVisible = false
|
||||||
views.groupToolbarAvatarImageView.isVisible = true
|
|
||||||
views.groupToolbarNavigateUp.isVisible = false
|
|
||||||
} else {
|
} else {
|
||||||
views.groupToolbarSpaceTitleView.isVisible = true
|
views.groupToolbarSpaceTitleView.isVisible = true
|
||||||
views.groupToolbarSpaceTitleView.text = spaceSummary.displayName
|
views.groupToolbarSpaceTitleView.text = spaceSummary.displayName
|
||||||
views.groupToolbarAvatarImageView.isVisible = false
|
|
||||||
views.groupToolbarNavigateUp.isVisible = true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,20 +74,6 @@
|
|||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/groupToolbarNavigateUp"
|
|
||||||
android:layout_width="28dp"
|
|
||||||
android:layout_height="28dp"
|
|
||||||
android:src="@drawable/ic_arrow_back"
|
|
||||||
android:layout_marginEnd="8dp"
|
|
||||||
android:contentDescription="@string/a11y_navigate_up_space"
|
|
||||||
android:visibility="gone"
|
|
||||||
app:tint="?vctr_content_secondary"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
tools:ignore="MissingPrefix" />
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/homeToolbarContent"
|
android:id="@+id/homeToolbarContent"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
Loading…
Reference in New Issue
Block a user