mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01:00
Merge pull request #4139 from nextcloud/bugfix/4010/fixSendTextToTalkApp
fix to display text that was sent to app via "share to"
This commit is contained in:
commit
129ba94af5
@ -247,6 +247,7 @@ class MessageInputFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun restoreState() {
|
private fun restoreState() {
|
||||||
|
if (binding.fragmentMessageInputView.inputEditText.text.isEmpty()) {
|
||||||
requireContext().getSharedPreferences(chatActivity.localClassName, AppCompatActivity.MODE_PRIVATE).apply {
|
requireContext().getSharedPreferences(chatActivity.localClassName, AppCompatActivity.MODE_PRIVATE).apply {
|
||||||
val text = getString(chatActivity.roomToken, "")
|
val text = getString(chatActivity.roomToken, "")
|
||||||
val cursor = getInt(chatActivity.roomToken + CURSOR_KEY, 0)
|
val cursor = getInt(chatActivity.roomToken + CURSOR_KEY, 0)
|
||||||
@ -254,6 +255,7 @@ class MessageInputFragment : Fragment() {
|
|||||||
binding.fragmentMessageInputView.messageInput.setSelection(cursor)
|
binding.fragmentMessageInputView.messageInput.setSelection(cursor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun saveState() {
|
private fun saveState() {
|
||||||
val text = binding.fragmentMessageInputView.messageInput.text.toString()
|
val text = binding.fragmentMessageInputView.messageInput.text.toString()
|
||||||
|
Loading…
Reference in New Issue
Block a user