-
Notifications
You must be signed in to change notification settings - Fork 555
fix: Load user details in Edit Profile section #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Here I want to place hideSoftKeyboard method at a commonplace so that it can call directly whenever requires. Please suggest me where I can place it. |
app/src/main/java/org/fossasia/openevent/general/auth/EditProfileFragment.kt
Outdated
Show resolved
Hide resolved
ce76c02 to
065d3b4
Compare
|
Updated |
| rootView.loginButton.setOnClickListener { | ||
| loginActivityViewModel.login(email.text.toString(), password.text.toString()) | ||
| hideSoftKeyboard() | ||
| hideSoftKeyboard(rootView.context, rootView) |
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.
Don't pass view's context here
| } | ||
|
|
||
| rootView.buttonUpdate.setOnClickListener { | ||
| hideSoftKeyboard(rootView.context, rootView) |
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.
Same here
app/src/main/java/org/fossasia/openevent/general/auth/ProfileFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/auth/ProfileFragment.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/auth/ProfileFragment.kt
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/auth/ProfileFragmentViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/auth/ProfileFragmentViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/utils/Utils.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/fossasia/openevent/general/auth/EditProfileFragment.kt
Show resolved
Hide resolved
|
Yes, please revert all unrelated changes from the PR. You can send a new PR to handle warnings |
Okay got it. By next time I will change in code related to the issue only. For extra changes or warning, need to submit new PR related to new issue. 👍 |
065d3b4 to
6e2a56c
Compare
|
updated |
app/src/main/java/org/fossasia/openevent/general/auth/ProfileFragment.kt
Outdated
Show resolved
Hide resolved
6e2a56c to
fef79e9
Compare
|
Updated |
fef79e9 to
472ddf6
Compare
Fixes #568