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

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -