Skip to content

Commit

Permalink
Added missing check from SearchViewFragment's showDialog()
Browse files Browse the repository at this point in the history
  • Loading branch information
AEFeinstein committed Apr 25, 2016
1 parent c1c680f commit dd437b9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,11 @@ public void checkDialogButtonColors() {
* @param id the id of the dialog to be shown
*/
private void showDialog(final int id) throws IllegalStateException {
/* If the fragment isn't visible (maybe being loaded by the pager), don't show dialogs */
if (!this.isVisible()) {
return;
}

removeDialog(getFragmentManager());

/* Create and show the dialog. */
Expand Down

0 comments on commit dd437b9

Please sign in to comment.