Android: Custom Dialog displays on back navigation -


the application displays custom dialog using code dialog.show(getactivity().getsupportfragmentmanager(), tag); in conditional statement onstart method of fragment.

but issue is, after dismissing fragment , navigate other activity , click on button displays custom dialog again conditional statement false.

how suppress dialog being displayed.

in onstop , onpause dismiss dialog dialog.dismiss(). make global object of dialog. reason dialog never dismissed , stays in activity when come shown.


Comments

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -