viewing paste Unknown #1258 | Java

Posted on the
1 2 3 4 5 6 7 8 9 10 11
chkbox.setOnClickListener(new View.OnClickListener() {
            
            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                if(((CheckBox) v).isChecked()){
                Toast.makeText(MainActivity.this, "Private Paste", Toast.LENGTH_SHORT).show();
                }
                Toast.makeText(MainActivity.this, "Public Paste", Toast.LENGTH_SHORT).show();
            }
        });
Viewed 1433 times, submitted by Streusel.