Skip to content

Conversation

@liveHarshit
Copy link
Member

@liveHarshit liveHarshit commented Sep 22, 2018

Fixes #568

@liveHarshit
Copy link
Member Author

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.

@liveHarshit
Copy link
Member Author

Updated

rootView.loginButton.setOnClickListener {
loginActivityViewModel.login(email.text.toString(), password.text.toString())
hideSoftKeyboard()
hideSoftKeyboard(rootView.context, rootView)
Copy link
Member

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@iamareebjamal
Copy link
Member

Yes, please revert all unrelated changes from the PR. You can send a new PR to handle warnings

@liveHarshit
Copy link
Member Author

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. 👍

@liveHarshit
Copy link
Member Author

updated

@fossasia fossasia deleted a comment Sep 22, 2018
@fossasia fossasia deleted a comment Sep 22, 2018
@liveHarshit
Copy link
Member Author

Updated

@fossasia fossasia deleted a comment Sep 23, 2018
@fossasia fossasia deleted a comment Sep 23, 2018
@fossasia fossasia deleted a comment Sep 23, 2018
@fossasia fossasia deleted a comment Sep 23, 2018
@fossasia fossasia deleted a comment Sep 23, 2018
@iamareebjamal iamareebjamal merged commit 504cf53 into fossasia:development Sep 23, 2018
@liveHarshit liveHarshit deleted the issue568 branch September 25, 2018 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants