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 #23

Merged
merged 2 commits into from
Jun 10, 2019

Conversation

mustaqmustu
Copy link
Contributor

@mustaqmustu mustaqmustu commented Jun 10, 2019

Fixed #12

Changes: changed insertData.java file.

Screenshots of the change:
image

image

Copy link
Member

@yashk2000 yashk2000 left a 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.

@mustaqmustu
Copy link
Contributor Author

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 :)

@yashk2000
Copy link
Member

@mustaqmustu thanks.

@yashk2000 yashk2000 merged commit ca7a1d4 into amfoss:master Jun 10, 2019
@@ -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();
Copy link
Member

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

Copy link
Member

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.

Copy link
Member

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

@vchrombie
Copy link
Member

vchrombie commented Jun 10, 2019

You can simply revert the merged PR by using the revert button (below this comment), instead of opening a new PR.

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