Skip to content

Conversation

@KanishkaHalder1771
Copy link
Contributor

No description provided.

Copy link
Contributor

@samuel-abhishek samuel-abhishek left a comment

Choose a reason for hiding this comment

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

Please handle the mentioned changes

super.setUIContent(ResourceTable.Layout_ability_signup);
// "permissions": [
// "com.applib.loginsignupapp.DataAbilityShellProvider.PROVIDER"
// ],
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete the useless code. (Applies to all files)

value.putString("password", password.getText());
isAllValidated = password.isValidated() && isAllValidated;
}
RadioButton selectedButton = (RadioButton) findComponentById(radioContainer.getMarkedButtonId());
Copy link
Contributor

Choose a reason for hiding this comment

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

This casting is dangerous!! It will lead to ClassCastException - when no radiobuttons are selected in the radioContainer and crash the application.[App crash scenario : Submit the form without selecting any of the radiobuttons. The app will crash]

isAllValidated = lastName.isValidated() && isAllValidated;
}
if(emailId.getText()!=null) {
value.putString("email", emailId.getText());
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid using hardcoded strings. Use constants instead. (Applies to all the files)

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants