|
|
@ -166,8 +166,7 @@ class ComposeActivity : BaseActivity(), |
|
|
|
setupContentWarningField(composeOptions?.contentWarning) |
|
|
|
setupContentWarningField(composeOptions?.contentWarning) |
|
|
|
setupPollView() |
|
|
|
setupPollView() |
|
|
|
applyShareIntent(intent, savedInstanceState) |
|
|
|
applyShareIntent(intent, savedInstanceState) |
|
|
|
|
|
|
|
viewModel.setupComplete.value = true |
|
|
|
composeEditField.requestFocus() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun applyShareIntent(intent: Intent?, savedInstanceState: Bundle?) { |
|
|
|
private fun applyShareIntent(intent: Intent?, savedInstanceState: Bundle?) { |
|
|
@ -331,6 +330,10 @@ class ComposeActivity : BaseActivity(), |
|
|
|
viewModel.uploadError.observe { |
|
|
|
viewModel.uploadError.observe { |
|
|
|
displayTransientError(R.string.error_media_upload_sending) |
|
|
|
displayTransientError(R.string.error_media_upload_sending) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
viewModel.setupComplete.observe { |
|
|
|
|
|
|
|
// Focus may have changed during view model setup, ensure initial focus is on the edit field |
|
|
|
|
|
|
|
composeEditField.requestFocus() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|