# maybe no more exception when closing the app before "load failed" dialog can pop up. nasty timing problem

This commit is contained in:
Lukas Niemeier committed 2013-05-01 17:58:21 +08:00
1 parent 3c5c09724c
commit 267944a10b
1 file changed
+4 -2
@@ -177,8 +177,10 @@ public class RacingActivity extends TwoPaneActivity implements RaceInfoListener,
dialog.cancel();
}
});
AlertDialog alert = builder.create();
alert.show();
if (!isFinishing()) {
AlertDialog alert = builder.create();
alert.show();
}
}
public void onRaceItemClicked(ManagedRace managedRace) {