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:
commit
debeb124af
|
@ -38,10 +38,11 @@ public class FeedRemover extends AsyncTask<Void, Void, Void> {
|
|||
|
||||
@Override
|
||||
protected void onPostExecute(Void result) {
|
||||
if(dialog != null && dialog.isShowing()) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
if(skipOnCompletion) {
|
||||
context.sendBroadcast(new Intent(
|
||||
PlaybackService.ACTION_SKIP_CURRENT_EPISODE));
|
||||
context.sendBroadcast(new Intent(PlaybackService.ACTION_SKIP_CURRENT_EPISODE));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue