app/src/main/java/com/kevinrei/chronotrack/AddAlarmActivity.java
// Check if the EditText field is empty
Check if the EditText field is empty
Check if the EditText field is empty
private boolean isEmpty(EditText editText) {
        if (editText == null) {
            return true;
        } else {
            return editText.getText().toString().trim().length() == 0;
        }
    }
private boolean isEmpty ( EditText editText ) { if ( editText == null ) { return true ; } else { return editText . getText ( ) . toString ( ) . trim ( ) . length ( ) == 0 ; } }
Check if the EditText field is empty
Check if the EditText field is empty