-
Notifications
You must be signed in to change notification settings - Fork 29
HMOS Assignment: Day2 and Day3 - Kanishka Halder #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
samuel-abhishek
left a comment
There was a problem hiding this 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" | ||
| // ], |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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)
|
|
No description provided.