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

@ -63,12 +63,13 @@ 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);