Make room thread detail text composer visible

This commit is contained in:
ariskotsomitopoulos 2021-10-21 16:53:20 +03:00
parent cb6376670b
commit a2a2315f9c
3 changed files with 10 additions and 5 deletions

View file

@ -51,7 +51,6 @@ class RoomThreadDetailActivity : VectorBaseActivity<ActivityRoomThreadDetailBind
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
initToolbar()
initFragment()
}

View file

@ -21,6 +21,7 @@ import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import com.airbnb.mvrx.args
import im.vector.app.core.platform.VectorBaseFragment
import im.vector.app.databinding.FragmentRoomThreadDetailBinding
@ -45,6 +46,12 @@ class RoomThreadDetailFragment @Inject constructor(
@SuppressLint("SetTextI18n")
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
initTextComposer()
views.testTextVeiwddasda.text = "${roomThreadDetailArgs.eventId} -- ${roomThreadDetailArgs.roomId}"
}
private fun initTextComposer(){
views.roomThreadDetailTextComposerView.views.sendButton.isVisible = true
}
}

View file

@ -12,19 +12,18 @@
android:layout_height="wrap_content"
android:text="@string/room_threads_filter"
android:textSize="25sp"
app:layout_constraintBottom_toTopOf="@id/composerLayout"
app:layout_constraintBottom_toTopOf="@id/roomThreadDetailTextComposerView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<im.vector.app.features.home.room.detail.composer.TextComposerView
android:id="@+id/composerLayout"
android:id="@+id/roomThreadDetailTextComposerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:colorBackground"
android:minHeight="56dp"
android:transitionName="composer"
android:visibility="gone"
android:visibility="visible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"