Check if view is still attached
This commit is contained in:
parent
3c10fb119a
commit
8086d9b316
|
@ -38,10 +38,11 @@ public class FeedRemover extends AsyncTask<Void, Void, Void> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Void result) {
|
protected void onPostExecute(Void result) {
|
||||||
|
if(dialog != null && dialog.isShowing()) {
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
|
}
|
||||||
if(skipOnCompletion) {
|
if(skipOnCompletion) {
|
||||||
context.sendBroadcast(new Intent(
|
context.sendBroadcast(new Intent(PlaybackService.ACTION_SKIP_CURRENT_EPISODE));
|
||||||
PlaybackService.ACTION_SKIP_CURRENT_EPISODE));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue