From cac5fb725a6f177da99502020ea386232de926eb Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 22 Oct 2019 18:35:05 +0200 Subject: [PATCH] Code cleanup --- .../features/home/room/detail/composer/TextComposerView.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vector/src/main/java/im/vector/riotx/features/home/room/detail/composer/TextComposerView.kt b/vector/src/main/java/im/vector/riotx/features/home/room/detail/composer/TextComposerView.kt index 192a3a6977..0a6d3dde08 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/room/detail/composer/TextComposerView.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/room/detail/composer/TextComposerView.kt @@ -39,9 +39,7 @@ import im.vector.riotx.R class TextComposerView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) : ConstraintLayout(context, attrs, defStyleAttr) { - interface Callback { - fun onRichContentSelected(contentUri: Uri): Boolean - } + interface Callback : ComposerEditText.Callback var callback: Callback? = null @@ -60,7 +58,7 @@ class TextComposerView @JvmOverloads constructor(context: Context, attrs: Attrib @BindView(R.id.composer_avatar_view) lateinit var composerAvatarImageView: ImageView - var currentConstraintSetId: Int = -1 + private var currentConstraintSetId: Int = -1 private val animationDuration = 100L