Android - Disable all other items on dialog when clicked on another
<p>How to disable all other items on dialog when clicked on another? Below is my code</p>

<pre><code>final CharSequence[] items = {"Red", "Green", "Blue"};    
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle("Select Sources");
builder.setMultiChoiceItems(items, null, new OnMultiChoiceClickListener() {
    @Override
    public void onClick(DialogInterface dialog, int which, boolean isChecked) {
        if(items[which] == "Red"){
            //Disabled Green and Blue items
        }
    }
});
AlertDialog alert = builder.create();
alert.show();
</code></pre>
