mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
Code cleanup
This commit is contained in:
parent
d2967f514b
commit
911ac65d1e
@ -396,17 +396,15 @@ public class RouterActivity extends AppCompatActivity {
|
|||||||
.setCancelable(true)
|
.setCancelable(true)
|
||||||
.setNegativeButton(R.string.just_once, dialogButtonsClickListener)
|
.setNegativeButton(R.string.just_once, dialogButtonsClickListener)
|
||||||
.setPositiveButton(R.string.always, dialogButtonsClickListener)
|
.setPositiveButton(R.string.always, dialogButtonsClickListener)
|
||||||
.setOnDismissListener((dialog) -> {
|
.setOnDismissListener(dialog -> {
|
||||||
if (!selectionIsDownload && !selectionIsAddToPlaylist) {
|
if (!selectionIsDownload && !selectionIsAddToPlaylist) {
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.create();
|
.create();
|
||||||
|
|
||||||
//noinspection CodeBlock2Expr
|
alertDialogChoice.setOnShowListener(dialog -> setDialogButtonsState(
|
||||||
alertDialogChoice.setOnShowListener(dialog -> {
|
alertDialogChoice, radioGroup.getCheckedRadioButtonId() != -1));
|
||||||
setDialogButtonsState(alertDialogChoice, radioGroup.getCheckedRadioButtonId() != -1);
|
|
||||||
});
|
|
||||||
|
|
||||||
radioGroup.setOnCheckedChangeListener((group, checkedId) ->
|
radioGroup.setOnCheckedChangeListener((group, checkedId) ->
|
||||||
setDialogButtonsState(alertDialogChoice, true));
|
setDialogButtonsState(alertDialogChoice, true));
|
||||||
|
Loading…
Reference in New Issue
Block a user