From bb92882958daaa6a045a419e3ddf8e211310e75d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 31 Jan 2020 20:28:57 +0100 Subject: [PATCH] (partially) Fix glitch --- .../vector/riotx/core/animations/AppBarStateChangeListener.kt | 3 ++- .../vector/riotx/features/roomprofile/RoomProfileFragment.kt | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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()) } }