(partially) Fix glitch

This commit is contained in:
Benoit Marty 2020-01-31 20:28:57 +01:00
parent 46dd17644f
commit bb92882958
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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())
}
}