Skip to content

Instantly share code, notes, and snippets.

@celiovasconcelos
Forked from pushlink/popups.java
Created October 22, 2017 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save celiovasconcelos/046103e8482e417ffad9a8069b16ac1c to your computer and use it in GitHub Desktop.
Save celiovasconcelos/046103e8482e417ffad9a8069b16ac1c to your computer and use it in GitHub Desktop.
//Only for popups (FRIENDLY_POPUP or ANNOYING_POPUP)
//You MUST do this, otherwise popups will not work.
//Call it in the Activity you want to show the popup.
//You can show the popup in many screens by adding this in more than one Activity.
@Override
protected void onResume() {
super.onResume();
PushLink.setCurrentActivity(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment