Merge pull request #2159 from mfietz/issue/2148-feed-remover

FeedRemover: When closing dialog, check if it is still attached
This commit is contained in:
Martin Fietz 2016-10-30 12:51:06 +01:00 committed by GitHub
commit debeb124af
1 changed files with 4 additions and 3 deletions

View File

@ -38,10 +38,11 @@ public class FeedRemover extends AsyncTask<Void, Void, Void> {
@Override @Override
protected void onPostExecute(Void result) { protected void onPostExecute(Void result) {
dialog.dismiss(); if(dialog != null && dialog.isShowing()) {
dialog.dismiss();
}
if(skipOnCompletion) { if(skipOnCompletion) {
context.sendBroadcast(new Intent( context.sendBroadcast(new Intent(PlaybackService.ACTION_SKIP_CURRENT_EPISODE));
PlaybackService.ACTION_SKIP_CURRENT_EPISODE));
} }
} }