mirror of
https://github.com/gabehf/tempus.git
synced 2026-03-16 02:35:58 -07:00
style: lambda to explicit
This commit is contained in:
parent
76c53bd502
commit
aee791b0c3
3 changed files with 36 additions and 19 deletions
|
|
@ -131,7 +131,12 @@ public class HomeTabRadioFragment extends Fragment implements ClickCallback, Rad
|
|||
|
||||
@Override
|
||||
public void onInternetRadioStationLongClick(Bundle bundle) {
|
||||
RadioEditorDialog dialog = new RadioEditorDialog(() -> radioViewModel.getInternetRadioStations(getViewLifecycleOwner()));
|
||||
RadioEditorDialog dialog = new RadioEditorDialog(new RadioCallback() {
|
||||
@Override
|
||||
public void onDismiss() {
|
||||
radioViewModel.getInternetRadioStations(getViewLifecycleOwner());
|
||||
}
|
||||
});
|
||||
dialog.setArguments(bundle);
|
||||
dialog.show(activity.getSupportFragmentManager(), null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue