Android : Two DialogFragments recreating, lastest in the back

on Thursday, August 7, 2014


Hello and thanks for finding time trying to help me!


CONSTRUCTION


I have two DialogFragments - DialogLogin responsible for taking data from user and DialogInfo infroming him about stuff. DialogLogin is the only fragment that can start DialogInfo. DialogInfo had to be created via onCreateView instead onCreateDialog.


PROBLEM


I start DialogLogin and then DialogInfo. So up front is DialogInfo and under it DialogLogin and below it Activity. After rotation DialogLogin is brought to the front while DialogInfo is in the back. So the user can see DialogLogin and DialogInfo is hidden.


QUESTION


Why they are changing order? Is there any way to prevent that from happening?


Thanks for help!


0 comments:

Post a Comment