mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Fix media selection dismissing when deselecting last item.
This commit is contained in:
@@ -37,7 +37,7 @@ class MediaSelectionGalleryFragment : Fragment(R.layout.fragment_container), Med
|
||||
)
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
val isFirst = arguments?.getBoolean("first") ?: false
|
||||
val isFirst = arguments?.getBoolean("suppressEmptyError") ?: arguments?.getBoolean("first") ?: false
|
||||
sharedViewModel.setSuppressEmptyError(isFirst)
|
||||
mediaGalleryFragment = ensureMediaGalleryFragment()
|
||||
|
||||
|
||||
@@ -12,7 +12,12 @@
|
||||
tools:layout="@layout/fragment_container">
|
||||
<action
|
||||
android:id="@+id/action_mediaCaptureFragment_to_mediaGalleryFragment"
|
||||
app:destination="@id/mediaGalleryFragment" />
|
||||
app:destination="@id/mediaGalleryFragment">
|
||||
<argument
|
||||
android:name="suppressEmptyError"
|
||||
android:defaultValue="true"
|
||||
app:argType="boolean" />
|
||||
</action>
|
||||
<action
|
||||
android:id="@+id/action_mediaCaptureFragment_to_textStoryPostCreationFragment"
|
||||
app:destination="@id/textStoryPostCreationFragment"
|
||||
|
||||
Reference in New Issue
Block a user