Move compose content's EditText cursor to first when shared content parsed in ComposeActivity (#2030)
* multiple media upload support * multiple media upload support * multiple media upload support * remove typing * Update app/src/main/res/values/strings.xml Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com> * remove magic number on string.xml and add to activity. * move edittext cursor to first when shareBody parsed in ComposeActivity Co-authored-by: Konrad Pozniak <connyduck@users.noreply.github.com>
This commit is contained in:
parent
968c4ed3e0
commit
0275504a05
2 changed files with 5 additions and 2 deletions
|
@ -202,6 +202,9 @@ class ComposeActivity : BaseActivity(),
|
||||||
val left = min(start, end)
|
val left = min(start, end)
|
||||||
val right = max(start, end)
|
val right = max(start, end)
|
||||||
composeEditField.text.replace(left, right, shareBody, 0, shareBody.length)
|
composeEditField.text.replace(left, right, shareBody, 0, shareBody.length)
|
||||||
|
// move edittext cursor to first when shareBody parsed
|
||||||
|
composeEditField.text.insert(0, "\n")
|
||||||
|
composeEditField.setSelection(0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -598,9 +598,9 @@
|
||||||
<string name="wellbeing_hide_stats_profile">Hide quantitative stats on profiles</string>
|
<string name="wellbeing_hide_stats_profile">Hide quantitative stats on profiles</string>
|
||||||
<string name="error_upload_max_media_reached">You cannot upload more than %1$d media attachments.</string>
|
<string name="error_upload_max_media_reached">You cannot upload more than %1$d media attachments.</string>
|
||||||
<string name="dialog_delete_list_warning">Do you really want to delete the list %s?</string>
|
<string name="dialog_delete_list_warning">Do you really want to delete the list %s?</string>
|
||||||
|
|
||||||
<string name="drafts_toot_failed_to_send">This toot failed to send!</string>
|
<string name="drafts_toot_failed_to_send">This toot failed to send!</string>
|
||||||
|
|
||||||
|
|
||||||
<string name="new_drafts_warning">
|
<string name="new_drafts_warning">
|
||||||
The draft feature in Tusky has been completely redesigned to be faster, more user friendly and less buggy.\n
|
The draft feature in Tusky has been completely redesigned to be faster, more user friendly and less buggy.\n
|
||||||
You can still access your old drafts via a button on the new drafts screen,
|
You can still access your old drafts via a button on the new drafts screen,
|
||||||
|
|
Loading…
Reference in a new issue