Created
July 18, 2017 02:31
-
-
Save wellingtoncosta/acb33eca825cd4eec501663c935129f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void validateFields() { | |
boolean isValid = validator.validateFields(); | |
String message = isValid ? "Yay!" : "Something is wrong :("; | |
Snackbar.make(linearLayout, message, Snackbar.LENGTH_LONG).show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment