In Fragment on back button pressed Activity is blank

前端 未结 11 1727
囚心锁ツ
囚心锁ツ 2020-11-29 20:04

I have an Activity and many fragments inflated in same FrameLayout



        
11条回答
  •  鱼传尺愫
    2020-11-29 20:36

    I still could not fix the issue through getBackStackEntryCount() and I solved my issue by making the main page a fragment too, so in the end I have an activity with a FrameLayout only; and all other fragments including the main page I inflate into that layout. This solved my issue.

提交回复
热议问题