If the activity is being finished, don't dismiss the dialog. This is already handled in the closeDialogs() function.

This commit is contained in:
Cameron Gutman 2014-08-06 14:26:13 -07:00
parent 2918039b6f
commit b340055588

View File

@ -62,13 +62,14 @@ public class SpinnerDialog implements Runnable,OnCancelListener {
@Override @Override
public void run() { public void run() {
// If we're dying, don't bother doing anything
if (activity.isFinishing()) {
return;
}
if (progress == null) if (progress == null)
{ {
// If we're dying, don't bother creating a dialog
if (activity.isFinishing())
return;
progress = new ProgressDialog(activity); progress = new ProgressDialog(activity);
progress.setTitle(title); progress.setTitle(title);