Closed StylianosGakis closed 9 months ago
I did end up testing this a bit, and turns out that if you do commit()
and then you close this dialog by clicking outside of its bounds, then if you press the back button it does nothing, since it first consumes this committed fragment which doesn't get dismissed properly when just clicking outside.
So I think if anything this is a false positive warning from the IDE, I'll leave this open in case someone else knows something more about this.
In the section that shows
The IDE is complaining that there is no
commit()
call on the fragmentTransaction. Is this a false-positive warning from the IDE, or should this snippet be updated to contain more correct code?Not super familiar myself with such dialog handling so I can't deduce that myself to give some suggestion.