Skip to content

Instantly share code, notes, and snippets.

@gcherubini
Created October 9, 2017 22:19
Show Gist options
  • Save gcherubini/0e6f6dfa23819f2268adabe008f35ad4 to your computer and use it in GitHub Desktop.
Save gcherubini/0e6f6dfa23819f2268adabe008f35ad4 to your computer and use it in GitHub Desktop.
Simplifying Android activities with Kotlin - Java validation
if ( binding != null
&& binding.editTextUserName != null
&& binding.editTextUserName.getText() != null
&& binding.editTextUserName.getText().toString() != null
&& binding.editTextUserName.getText().toString().length() > 0 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment