Skip to content

Instantly share code, notes, and snippets.

@danzeeeman
Created September 19, 2013 13:34
Show Gist options
  • Save danzeeeman/6623548 to your computer and use it in GitHub Desktop.
Save danzeeeman/6623548 to your computer and use it in GitHub Desktop.
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if(!hasFocus) {
Intent closeDialog = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
sendBroadcast(closeDialog);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment