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
Post a Comment