Suppress multiple clicks on tap to add.

This commit is contained in:
Alex Hart 2022-03-23 16:29:16 -03:00 committed by Greyson Parrelli
parent b0b1029d0f
commit e9160c2449

View file

@ -93,6 +93,7 @@ class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creati
storyTextPostView.setTextViewClickListener {
storyTextPostView.hidePostContent()
storyTextPostView.isEnabled = false
TextStoryPostTextEntryFragment().show(childFragmentManager, null)
}
@ -123,6 +124,7 @@ class TextStoryPostCreationFragment : Fragment(R.layout.stories_text_post_creati
override fun onTextStoryPostTextEntryDismissed() {
storyTextPostView.postDelayed(resources.getInteger(R.integer.text_entry_exit_duration).toLong()) {
storyTextPostView.showPostContent()
storyTextPostView.isEnabled = true
}
}
}