mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-24 03:35:58 +00:00
Suppress deselection error when opening gallery from chat.
This commit is contained in:
committed by
Cody Henthorne
parent
3ee889cb79
commit
f368e5b133
@@ -37,7 +37,14 @@ class MediaSelectionGalleryFragment : Fragment(R.layout.fragment_container), Med
|
||||
)
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
val isFirst = arguments?.getBoolean("suppressEmptyError") ?: arguments?.getBoolean("first") ?: false
|
||||
val args = arguments
|
||||
val isFirst = when {
|
||||
args == null -> false
|
||||
args.containsKey("suppressEmptyError") -> args.getBoolean("suppressEmptyError")
|
||||
args.containsKey("first") -> args.getBoolean("first")
|
||||
else -> false
|
||||
}
|
||||
|
||||
sharedViewModel.setSuppressEmptyError(isFirst)
|
||||
mediaGalleryFragment = ensureMediaGalleryFragment()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user