Skip to content

Commit ea29fe0

Browse files
committed
Fixed an issue where the download button would crash the app.
1 parent 44bf345 commit ea29fe0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private void initToolbar(final Toolbar toolbar) {
344344
toolbar.setNavigationOnClickListener(v -> dismiss());
345345
toolbar.setNavigationContentDescription(R.string.cancel);
346346

347-
okButton = toolbar.findViewById(R.id.okay);
347+
okButton = toolbar.getMenu().findItem(R.id.okay);
348348
okButton.setEnabled(false); // disable until the download service connection is done
349349

350350
toolbar.setOnMenuItemClickListener(item -> {

0 commit comments

Comments
 (0)