Created
September 4, 2015 06:20
-
-
Save baleen37/6aee26251116ee8f20a6 to your computer and use it in GitHub Desktop.
Avoid opening multiple dialogs when tapping an element
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomDialog extends DialogFragment { | |
// code here | |
@Override | |
public void show(FragmentManager manager, String tag) { | |
if (manager.findFragmentByTag(tag) == null) { | |
super.show(manager, tag); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment