I have the following code:
DialogInterface.OnClickListener closeOnOkClickListener = new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
switch (which){
case DialogInterface.BUTTON_POSITIVE:
finish();
break;
}
}
};
And I am trying to convert this to a lambda expression but I cannot do it.
Is it possible?
How?