-
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 #23
Conversation
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 use setError
or something similar to give the alert when the user presses the button to proceed. Do not show a simple toast. The error should be shown on the EditText itself.
Done :) |
@mustaqmustu thanks. |
@@ -93,18 +93,23 @@ public void onClick(View v) { | |||
insert.setOnClickListener(new View.OnClickListener() { | |||
@Override | |||
public void onClick(View view) { | |||
id = id + uid1ET.getText().toString(); | |||
id = uid1ET.getText().toString(); |
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 revert the change here as by adding id
to we will know the type whether it is Donation
or Registration
then check if the length equals to 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.
@mustaqmustu I did not notice that change. Please revert that in another pr ASAP.
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.
I reverted the PR please make another PR
You can simply revert the merged PR by using the revert button (below this comment), instead of opening a new PR. |
Fixed #12
Changes: changed insertData.java file.
Screenshots of the change: