mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Preserve text when toggling view once.
Fixes an issue, where the written text would be lost if a user toggled view once in the `AddMessageDialogFragment`. This is unexpected, as when toggling view once from the `MediaReviewFragment` the previously written text is preserved.
This commit is contained in:
committed by
Jeffrey Starke
parent
11d6234d91
commit
c6afa17330
@@ -101,6 +101,7 @@ class AddMessageDialogFragment : KeyboardEntryDialogFragment(R.layout.v2_media_a
|
||||
binding.hud.setOnClickListener { dismissAllowingStateLoss() }
|
||||
|
||||
binding.content.viewOnceToggle.setOnClickListener {
|
||||
dismissAllowingStateLoss()
|
||||
viewModel.incrementViewOnceState()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user