mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-25 00:14:00 +01:00
Merge pull request #4024 from ByteHamster/onlinefeedview-error-cancel
Fixed error dialog not closing activity sometimes
This commit is contained in:
commit
fc92802dfe
@ -535,14 +535,14 @@ public class OnlineFeedViewActivity extends AppCompatActivity {
|
||||
} else {
|
||||
builder.setMessage(R.string.error_msg_prefix);
|
||||
}
|
||||
builder.setNeutralButton(android.R.string.ok,
|
||||
builder.setPositiveButton(android.R.string.ok,
|
||||
(dialog, which) -> dialog.cancel()
|
||||
);
|
||||
builder.setOnCancelListener(dialog -> {
|
||||
builder.setOnDismissListener(dialog -> {
|
||||
setResult(RESULT_ERROR);
|
||||
finish();
|
||||
});
|
||||
if(dialog != null && dialog.isShowing()) {
|
||||
if (dialog != null && dialog.isShowing()) {
|
||||
dialog.dismiss();
|
||||
}
|
||||
dialog = builder.show();
|
||||
|
Loading…
Reference in New Issue
Block a user