What I need is to show message but do nothing. I've tried with "break" and "return true/false". Any suggestion? And my code is:
builder.setPositiveButton("OK", new OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
if(chosenCat.size() < 2){
Toast.makeText(getApplicationContext(), "Min 2 categories to compare.", Toast.LENGTH_SHORT).show();
//...needs to abort OK button like nothing pressed
} else {
//...do some stuff
}
}
});