Skip to content

Conversation

@sebapitur
Copy link

No description provided.

Copy link
Owner

@magdamiu magdamiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the added comments and if something is not clear, just let me know.

super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try {
String null_ = null;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this code?

if (inputName.length() > 0) {
textViewGreetings.setText(inputName);
} else {
editTextName.setError(getString(R.string.error_insert_name));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a good practice to format the code with CTRL + ALT + L before you commit it and to remove the unnecessary spaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants