From b340055588c5498512682bc441e0cda5e5bdb289 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 6 Aug 2014 14:26:13 -0700 Subject: [PATCH] If the activity is being finished, don't dismiss the dialog. This is already handled in the closeDialogs() function. --- src/com/limelight/utils/SpinnerDialog.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/com/limelight/utils/SpinnerDialog.java b/src/com/limelight/utils/SpinnerDialog.java index 29a35bb2..3f9bb283 100644 --- a/src/com/limelight/utils/SpinnerDialog.java +++ b/src/com/limelight/utils/SpinnerDialog.java @@ -62,13 +62,14 @@ public class SpinnerDialog implements Runnable,OnCancelListener { @Override public void run() { + + // If we're dying, don't bother doing anything + if (activity.isFinishing()) { + return; + } if (progress == null) { - // If we're dying, don't bother creating a dialog - if (activity.isFinishing()) - return; - progress = new ProgressDialog(activity); progress.setTitle(title);