, new DialogInterface.OnClickListener() {                     @Override                     public void onClick(DialogInterface dialog, int which) {                         String selected = values[which].toString();                         listener.onInput(selected);                         dialog.dismiss();                     }                 })                 