Sam Stone
05/27/2024, 4:25 AMonBackPressedDispatcher
on Android) in each screen with a drop-down, and close the drop-down if the instance's tag is in the set.
That seems like a lot of overhead for a trivial framework-level need, but onDismissRequest
is not called when the user presses the back button.Stylianos Gakis
05/27/2024, 4:56 PMSam Stone
05/31/2024, 11:17 AMBackHandler
in common code. Secondly, even on Android, for some reason `onDismissRequest`is not called when the user presses the back button. Thirdly, even if BackHandler was available, it would have to be included in every screen with a drop-down, and maybe even require keeping track of a stack of drop-downs which were exposed if multiple?Stylianos Gakis
05/31/2024, 11:55 AMStylianos Gakis
05/31/2024, 2:51 PMStylianos Gakis
05/31/2024, 2:53 PMSam Stone
06/01/2024, 12:10 AM