Fixed error dialog being shown in wrong thread

This commit is contained in:
ByteHamster 2020-05-06 21:28:14 +02:00
parent 63be7a97b8
commit c8ed88dc96

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());
}
/**