Commits

Anonymous committed 15db258 Draft

Check to see if the activity is finishing before showing a dialog in the handler

  • Participants
  • Parent commits 0a25a3c

Comments (0)

Files changed (1)

src/com/jrummy/busybox/installer/BusyboxInstaller.java

 					titleBar.hideProgressHorizontal();
 					titleBar.showProgressSpinner(false);
 					mInstallButton.setEnabled(true);
-					activity.showDialog(BusyboxActivity.DIALOG_DOWNLOAD_FAILED);
+					if (!activity.isFinishing()) {
+						activity.showDialog(BusyboxActivity.DIALOG_DOWNLOAD_FAILED);
+					}
 					break;
 				case Downloader.PROGRESS_CHANGED:
 					int progress = mDownloader.getProgress() < 0 ? 0 : mDownloader.getProgress();