diff --git a/vector/src/main/java/im/vector/riotx/core/animations/AppBarStateChangeListener.kt b/vector/src/main/java/im/vector/riotx/core/animations/AppBarStateChangeListener.kt index b739f52bf3..bbc78d7937 100644 --- a/vector/src/main/java/im/vector/riotx/core/animations/AppBarStateChangeListener.kt +++ b/vector/src/main/java/im/vector/riotx/core/animations/AppBarStateChangeListener.kt @@ -27,7 +27,8 @@ abstract class AppBarStateChangeListener : OnOffsetChangedListener { EXPANDED, COLLAPSED, IDLE } - private var currentState = State.IDLE + var currentState = State.IDLE + private set override fun onOffsetChanged(appBarLayout: AppBarLayout, i: Int) { currentState = if (i == 0) { diff --git a/vector/src/main/java/im/vector/riotx/features/roomprofile/RoomProfileFragment.kt b/vector/src/main/java/im/vector/riotx/features/roomprofile/RoomProfileFragment.kt index 2f626547d2..1eafc8af3f 100644 --- a/vector/src/main/java/im/vector/riotx/features/roomprofile/RoomProfileFragment.kt +++ b/vector/src/main/java/im/vector/riotx/features/roomprofile/RoomProfileFragment.kt @@ -147,7 +147,6 @@ class RoomProfileFragment @Inject constructor( avatarRenderer.render(matrixItem, matrixProfileToolbarAvatarImageView) roomProfileDecorationImageView.isVisible = it.roomEncryptionTrustLevel != null roomProfileDecorationImageView.setImageResource(it.roomEncryptionTrustLevel.toImageRes()) - matrixProfileDecorationToolbarAvatarImageView.isVisible = it.roomEncryptionTrustLevel != null matrixProfileDecorationToolbarAvatarImageView.setImageResource(it.roomEncryptionTrustLevel.toImageRes()) } }