Skip to content

Commit

Permalink
Changes space title in toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdecanini committed Aug 10, 2022
1 parent f94aad6 commit 9505d19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,7 @@ class NewHomeDetailFragment @Inject constructor(
}

private fun onSpaceChange(spaceSummary: RoomSummary?) {
// Reimplement in next PR
println(spaceSummary)
views.collapsingToolbar.title = (spaceSummary?.displayName ?: getString(R.string.all_chats))
}

private fun setupKeysBackupBanner() {
Expand Down
3 changes: 2 additions & 1 deletion vector/src/main/res/layout/fragment_new_home_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
app:layout_constraintTop_toBottomOf="@id/syncStateView">

<com.google.android.material.appbar.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
style="@style/Widget.Vector.Material3.CollapsingToolbar.Medium"
android:layout_width="match_parent"
android:layout_height="?attr/collapsingToolbarLayoutMediumSize"
Expand All @@ -61,7 +62,7 @@
android:layout_height="?attr/actionBarSize"
android:elevation="0dp"
app:layout_collapseMode="pin"
app:title="@string/all_chats">
tools:title="@string/all_chats">

<ImageView
android:id="@+id/avatar"
Expand Down

0 comments on commit 9505d19

Please sign in to comment.