ese-unibe-ch / ese2013-team5

3 stars 4 forks source link

Overlapping PageViewer fragments in Mensadetails view #71

Open exside opened 10 years ago

exside commented 10 years ago

I cannot reproduce it anymore, but I had the case where several MenuListDay Fragments were overlapping each other, after some interaction with the back button...but cannot get the same thing again right now, looked like the instances of the fragment don't get destroyed...

exside commented 10 years ago

this has something to do with the childFragmentManager() (nested fragments) and the backstack...couldn't solve it till now.

steps to reproduce:

1) go to mensalist 2) click a mensa for detail view 3) press the map button to navigate to the mensa 4) press the back button 5) repeat a few times eventually 6) you should see overlapping fragments...or the map fragment behind...very strange stuff going on here

the workaround is to just give the main containers a background color, so the fragments lying behind these are not visible...crappy but better than overlapping fragments...

exside commented 10 years ago

better solution was to "clean up" the unwanted fragments when the back button is clicked, this is implemented and seems to works so far, maybe still not the best for performance, but ok...