mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Changes space title in toolbar
This commit is contained in:
parent
f94aad65dd
commit
9505d196e4
2 changed files with 3 additions and 3 deletions
|
@ -270,8 +270,7 @@ class NewHomeDetailFragment @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun onSpaceChange(spaceSummary: RoomSummary?) {
|
private fun onSpaceChange(spaceSummary: RoomSummary?) {
|
||||||
// Reimplement in next PR
|
views.collapsingToolbar.title = (spaceSummary?.displayName ?: getString(R.string.all_chats))
|
||||||
println(spaceSummary)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setupKeysBackupBanner() {
|
private fun setupKeysBackupBanner() {
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
app:layout_constraintTop_toBottomOf="@id/syncStateView">
|
app:layout_constraintTop_toBottomOf="@id/syncStateView">
|
||||||
|
|
||||||
<com.google.android.material.appbar.CollapsingToolbarLayout
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
||||||
|
android:id="@+id/collapsing_toolbar"
|
||||||
style="@style/Widget.Vector.Material3.CollapsingToolbar.Medium"
|
style="@style/Widget.Vector.Material3.CollapsingToolbar.Medium"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/collapsingToolbarLayoutMediumSize"
|
android:layout_height="?attr/collapsingToolbarLayoutMediumSize"
|
||||||
|
@ -61,7 +62,7 @@
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:elevation="0dp"
|
android:elevation="0dp"
|
||||||
app:layout_collapseMode="pin"
|
app:layout_collapseMode="pin"
|
||||||
app:title="@string/all_chats">
|
tools:title="@string/all_chats">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/avatar"
|
android:id="@+id/avatar"
|
||||||
|
|
Loading…
Reference in a new issue