Merge pull request #4127 from ByteHamster/fix-invalid-feed-crash

Fixed error dialog being shown in wrong thread
This commit is contained in:
H. Lehmann 2020-05-07 09:59:50 +02:00 committed by GitHub
commit 939008852c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,7 +145,7 @@ public class OnlineFeedViewActivity extends AppCompatActivity {
}
private void showNoPodcastFoundError() {
new AlertDialog.Builder(OnlineFeedViewActivity.this)
runOnUiThread(() -> new AlertDialog.Builder(OnlineFeedViewActivity.this)
.setNeutralButton(android.R.string.ok, (dialog, which) -> finish())
.setTitle(R.string.error_label)
.setMessage(R.string.null_value_podcast_error)
@ -153,7 +153,7 @@ public class OnlineFeedViewActivity extends AppCompatActivity {
setResult(RESULT_ERROR);
finish();
})
.show();
.show());
}
/**