79657965

Date: 2025-06-08 15:57:52
Score: 1.5
Natty:
Report link

IDK Why but you can't use switch for id.

Use if instead.

if (id == R.id.convertButton){
    // do something
}else if (id == R.id.convertButton2) {
    // do something       
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ahmadreza gh