Mentorship-android: bug: Password change confirmation button enabled only when some password is entered

Created on 21 Feb 2020  路  23Comments  路  Source: anitab-org/mentorship-android

Describe the bug
bug: Password change confirmation button enabled only when some password is entered

To Reproduce
Go to settings and Change password

Expected behavior
The button should be disabled at first and then should get enabled once user enters some password.

Screenshots

Coding Open Source Hack Enhancement

All 23 comments

I am working on this.

can i work on this?

May I work on this?

@mayburgos Can you approve the issue here and get me assigned on it? I was busy with some of my other commitments. Will join the next open sessions to discuss some of my ideas and future of the project. Thanks.

@jddeep, as you are already working on #568 and some other issues, let @Priyansh-Kedia take this one

@Priyansh-Kedia how would you fix this?

@m-murad Agreed.
@Priyansh-Kedia You can go ahead.

@m-murad I would put an if condition check for the empty password fields.
If they will be empty then on click of button there user will be asked to input something in the fields.
I will be applying the textchangedlistener to it.

What we are doing now is using the default buttons provided by the AlertDialog APIs.
You will need to remove these buttons and add custom buttons in the dialog layout. Then user the textChangedListener on the new password fields.

@m-murad The problem also gets solved by using textchangedlistener on the default AlertDialog.

but you will not be able to enable or disable the default buttons, you will have to use custom buttons for that.

@m-murad I am attaching a clip for what changes I have done till now.
Please suggest.

WhatsApp Video 2020-03-05 at 2 54 16 PM

Yes, makes sense you can send a PR for review

@m-murad Thanks.
Sending PR right away.

@m-murad @mayburgos
https://github.com/anitab-org/mentorship-android/pull/621#issue-384165223
This is the PR for the same.
Please review.
Thanks

hey @Priyansh-Kedia how long would it take to send a PR again as discussed?

@vj-codes
I will try to send a PR by tomorrow

@Priyansh-Kedia hey
How's the PR going?

@Priyansh-Kedia making it available due to inactivity

@vj-codes @anna4j Can I work on this for OSH?

@DhaneshShetty have you opened a PR for your previous issue?

@DhaneshShetty have you opened a PR for your previous issue?

Yes I have @anna4j

Okay let me just quickly review it and get back to you

Go ahead with it! @DhaneshShetty assigning you
You can also comment on PR so that I or other mentors know that you've completed your previous issue :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isabelcosta picture isabelcosta  路  4Comments

isabelcosta picture isabelcosta  路  4Comments

garimasingh128 picture garimasingh128  路  3Comments

epicadk picture epicadk  路  5Comments

mohak1283 picture mohak1283  路  9Comments