parent
710bb386e2
commit
0a2696113c
2 changed files with 4 additions and 2 deletions
|
@ -159,7 +159,7 @@ class MediaSelectionRepository(context: Context) {
|
|||
}
|
||||
|
||||
private fun getTruncatedBody(body: String?): String? {
|
||||
return if (body.isNullOrEmpty()) {
|
||||
return if (!Stories.isFeatureEnabled() || body.isNullOrEmpty()) {
|
||||
body
|
||||
} else {
|
||||
val iterator = BreakIteratorCompat.getInstance()
|
||||
|
|
|
@ -79,7 +79,9 @@ class AddMessageDialogFragment : KeyboardEntryDialogFragment(R.layout.v2_media_a
|
|||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
input = view.findViewById(R.id.add_a_message_input)
|
||||
|
||||
EditTextUtil.addGraphemeClusterLimitFilter(input, Stories.MAX_BODY_SIZE)
|
||||
if (Stories.isFeatureEnabled()) {
|
||||
EditTextUtil.addGraphemeClusterLimitFilter(input, Stories.MAX_BODY_SIZE)
|
||||
}
|
||||
|
||||
input.setText(requireArguments().getCharSequence(ARG_INITIAL_TEXT))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue