Rename files.
This commit is contained in:
parent
5541c2e190
commit
49cad8feec
@ -165,7 +165,7 @@ import io.reactivex.android.schedulers.AndroidSchedulers
|
|||||||
import io.reactivex.schedulers.Schedulers
|
import io.reactivex.schedulers.Schedulers
|
||||||
import kotlinx.android.parcel.Parcelize
|
import kotlinx.android.parcel.Parcelize
|
||||||
import kotlinx.android.synthetic.main.fragment_room_detail.*
|
import kotlinx.android.synthetic.main.fragment_room_detail.*
|
||||||
import kotlinx.android.synthetic.main.merge_composer_layout.view.*
|
import kotlinx.android.synthetic.main.composer_layout.view.*
|
||||||
import kotlinx.android.synthetic.main.merge_overlay_waiting_view.*
|
import kotlinx.android.synthetic.main.merge_overlay_waiting_view.*
|
||||||
import org.billcarsonfr.jsonviewer.JSonViewerDialog
|
import org.billcarsonfr.jsonviewer.JSonViewerDialog
|
||||||
import org.commonmark.parser.Parser
|
import org.commonmark.parser.Parser
|
||||||
|
@ -36,7 +36,7 @@ import androidx.transition.TransitionSet
|
|||||||
import butterknife.BindView
|
import butterknife.BindView
|
||||||
import butterknife.ButterKnife
|
import butterknife.ButterKnife
|
||||||
import im.vector.app.R
|
import im.vector.app.R
|
||||||
import kotlinx.android.synthetic.main.merge_composer_layout.view.*
|
import kotlinx.android.synthetic.main.composer_layout.view.*
|
||||||
import org.matrix.android.sdk.api.crypto.RoomEncryptionTrustLevel
|
import org.matrix.android.sdk.api.crypto.RoomEncryptionTrustLevel
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -86,7 +86,7 @@ class TextComposerView @JvmOverloads constructor(context: Context, attrs: Attrib
|
|||||||
get() = composerEditText.text
|
get() = composerEditText.text
|
||||||
|
|
||||||
init {
|
init {
|
||||||
inflate(context, R.layout.merge_composer_layout, this)
|
inflate(context, R.layout.composer_layout, this)
|
||||||
ButterKnife.bind(this)
|
ButterKnife.bind(this)
|
||||||
collapse(false)
|
collapse(false)
|
||||||
composerEditText.callback = object : ComposerEditText.Callback {
|
composerEditText.callback = object : ComposerEditText.Callback {
|
||||||
@ -110,20 +110,20 @@ class TextComposerView @JvmOverloads constructor(context: Context, attrs: Attrib
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun collapse(animate: Boolean = true, transitionComplete: (() -> Unit)? = null) {
|
fun collapse(animate: Boolean = true, transitionComplete: (() -> Unit)? = null) {
|
||||||
if (currentConstraintSetId == R.layout.constraint_set_composer_layout_compact) {
|
if (currentConstraintSetId == R.layout.composer_layout_constraint_set_compact) {
|
||||||
// ignore we good
|
// ignore we good
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
currentConstraintSetId = R.layout.constraint_set_composer_layout_compact
|
currentConstraintSetId = R.layout.composer_layout_constraint_set_compact
|
||||||
applyNewConstraintSet(animate, transitionComplete)
|
applyNewConstraintSet(animate, transitionComplete)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun expand(animate: Boolean = true, transitionComplete: (() -> Unit)? = null) {
|
fun expand(animate: Boolean = true, transitionComplete: (() -> Unit)? = null) {
|
||||||
if (currentConstraintSetId == R.layout.constraint_set_composer_layout_expanded) {
|
if (currentConstraintSetId == R.layout.composer_layout_constraint_set_expanded) {
|
||||||
// ignore we good
|
// ignore we good
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
currentConstraintSetId = R.layout.constraint_set_composer_layout_expanded
|
currentConstraintSetId = R.layout.composer_layout_constraint_set_expanded
|
||||||
applyNewConstraintSet(animate, transitionComplete)
|
applyNewConstraintSet(animate, transitionComplete)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
tools:constraintSet="@layout/constraint_set_composer_layout_compact"
|
tools:constraintSet="@layout/composer_layout_constraint_set_compact"
|
||||||
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">
|
||||||
|
|
||||||
<!-- ========================
|
<!-- ========================
|
Loading…
Reference in New Issue
Block a user