summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-05-31 11:09:58 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2014-05-31 11:09:58 +0200
commitaeb3e9993846a1e8bd957a65e91da33ecb32e7fc (patch)
treec07c570bc6345f63cad919dea5c239a7a6f6a13d
parentcdee2f827861697dbbe3a31a5e75ec107d3e1dd9 (diff)
downloadAntennaPod-aeb3e9993846a1e8bd957a65e91da33ecb32e7fc.zip
Do not show dialog if activity has been closed
Should fix BadTokenException in OnlineFeedViewActivity
-rw-r--r--src/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java b/src/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java
index 6dd4b4edc..271cc19d5 100644
--- a/src/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java
+++ b/src/de/danoeh/antennapod/activity/OnlineFeedViewActivity.java
@@ -299,7 +299,10 @@ public abstract class OnlineFeedViewActivity extends ActionBarActivity {
finish();
}
});
- builder.show();
+
+ if (!isFinishing()) {
+ builder.show();
+ }
}
private class FeedViewAuthenticationDialog extends AuthenticationDialog {