make "replying to" string translateable
This commit is contained in:
parent
98811300d8
commit
b577f5eaef
|
@ -126,6 +126,8 @@ class DetailActivity : BaseActivity(), TimeLineActionListener {
|
|||
override fun onReply(status: StatusEntity) {
|
||||
val replyBottomsheet = BottomSheetBehavior.from(binding.detailReplyBottomSheet)
|
||||
replyBottomsheet.state = BottomSheetBehavior.STATE_EXPANDED
|
||||
|
||||
binding.detailReplyingTo.text = getString(R.string.status_details_replying_to, "@" + status.account.username)
|
||||
binding.detailReply.requestFocus()
|
||||
binding.detailReply.setText("@" + status.account.username + " ")
|
||||
binding.detailReply.setSelection(binding.detailReply.text?.length ?: 0)
|
||||
|
|
|
@ -72,9 +72,9 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:text="replying to @ConnyDuck"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="replying to @ConnyDuck" />
|
||||
|
||||
<com.google.android.material.textfield.TextInputLayout
|
||||
android:id="@+id/detailReplyLayout"
|
||||
|
|
|
@ -79,5 +79,7 @@
|
|||
<string name="status_general_error">An unexpected error occurred</string>
|
||||
<string name="status_network_error">Failed to connect. Please check your internet connection-</string>
|
||||
|
||||
<string name="status_details_replying_to">Replying to $1%s</string>
|
||||
|
||||
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue