mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
If the activity is being finished, don't dismiss the dialog. This is already handled in the closeDialogs() function.
This commit is contained in:
parent
2918039b6f
commit
b340055588
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user