Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

fixes #12: It will be better to restrict user to add either "user ID" or "name", without leaving both details empty #25

Merged
merged 2 commits into from
Jun 10, 2019

Conversation

mustaqmustu
Copy link
Contributor

@mustaqmustu mustaqmustu commented Jun 10, 2019

Fixed #12

Screenshots of the change:
image

} else {
money = moneyDonated.getText().toString();
overall = money + getResources().getString(R.string.empty) + name + getResources().getString(R.string.empty) + paidCheck;
if (id.length() == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Check for length >= 3.

} else {
money = moneyDonated.getText().toString();
overall = money + getResources().getString(R.string.empty) + name + getResources().getString(R.string.empty) + paidCheck;
if (id.length() == 3) {
Copy link
Member

Choose a reason for hiding this comment

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

id.length() >=3

Copy link
Member

@yashk2000 yashk2000 Jun 10, 2019

Choose a reason for hiding this comment

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

It won't accept length > 3, please change that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no @yashk2000 ...actual length of id is 3..i.e if nothing is entered..id length will be 3,then it wont allows the user...so if anything is entered,it will be greater than 3 and it allows the user.

Copy link
Member

Choose a reason for hiding this comment

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

In that case it's fine 👍

@vchrombie
Copy link
Member

Looks everyone is satisfied with the work. Thanks, @mustaqmustu 😄

@vchrombie vchrombie merged commit f4fb16c into amfoss:master Jun 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

It will be better to restrict user to add either "user ID" or "name", without leaving both details empty
4 participants