mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
(partially) Fix glitch
This commit is contained in:
parent
46dd17644f
commit
bb92882958
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue