Fix text story keyboard in text stories.

This commit is contained in:
Alex Hart
2023-06-27 11:52:40 -03:00
committed by Nicholas
parent 60e1ee21ed
commit 029c8ba917
3 changed files with 10 additions and 7 deletions

View File

@@ -71,7 +71,7 @@ class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creati
_binding = StoriesTextPostCreationFragmentBinding.bind(view)
binding.storyTextPost.showCloseButton()
binding.storyTextPost.enableCreationMode()
lifecycleDisposable.bindTo(viewLifecycleOwner)
lifecycleDisposable += sharedViewModel.hudCommands.subscribe {
@@ -137,7 +137,7 @@ class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creati
binding.send.isClickable = false
binding.sendInProgressIndicator.visible = true
binding.storyTextPost.hideCloseButton()
binding.storyTextPost.disableCreationMode()
val contacts = (sharedViewModel.destination.getRecipientSearchKeyList() + sharedViewModel.destination.getRecipientSearchKey())
.filterIsInstance(ContactSearchKey::class.java)
@@ -174,7 +174,7 @@ class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creati
override fun onResume() {
super.onResume()
binding.storyTextPost.showCloseButton()
binding.storyTextPost.enableCreationMode()
requireActivity().requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
}