-
Notifications
You must be signed in to change notification settings - Fork 36
fixes #12: It will be better to restrict user to add either "user ID" or "name", without leaving both details empty #25
Conversation
} else { | ||
money = moneyDonated.getText().toString(); | ||
overall = money + getResources().getString(R.string.empty) + name + getResources().getString(R.string.empty) + paidCheck; | ||
if (id.length() == 0) { |
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.
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) { |
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.
id.length() >=3
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.
It won't accept length > 3, please change that.
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.
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.
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.
In that case it's fine 👍
Looks everyone is satisfied with the work. Thanks, @mustaqmustu 😄 |
Fixed #12
Screenshots of the change: