1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-04-19 05:11:22 +00:00

Correctly retrieve menu item inside download dialog

This commit is contained in:
Yevhen Babiichuk (DustDFG)
2026-02-26 01:08:20 +02:00
parent 9a292e33f9
commit 195a76bb08

View File

@@ -344,7 +344,7 @@ public class DownloadDialog extends DialogFragment
toolbar.setNavigationOnClickListener(v -> dismiss());
toolbar.setNavigationContentDescription(R.string.cancel);
okButton = toolbar.findViewById(R.id.okay);
okButton = toolbar.getMenu().findItem(R.id.okay);
okButton.setEnabled(false); // disable until the download service connection is done
toolbar.setOnMenuItemClickListener(item -> {