Suppress multiple clicks on tap to add.

fork-5.53.8
Alex Hart 2022-03-23 16:29:16 -03:00 zatwierdzone przez Greyson Parrelli
rodzic b0b1029d0f
commit e9160c2449
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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
}
}
}