Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

992: Hide soft keyboard on unlock. #1024

Merged
merged 1 commit into from
Oct 31, 2019
Merged

992: Hide soft keyboard on unlock. #1024

merged 1 commit into from
Oct 31, 2019

Conversation

eliserichards
Copy link
Contributor

@eliserichards eliserichards commented Oct 23, 2019

Fixes #992

Testing and Review Notes

Hiding the keyboard on onPause() for the LockedFragment. There's a little bit of a "flash" of the splash screen in between unlocking and the item list. Not sure if we should open a issue to fix that, or ...?

Screenshots or Videos

autofill_capture_duolingo

To Do

  • double check the original issue to confirm it is fully satisfied
  • add testing notes and screenshots in PR description to help guide reviewers
  • request the "UX" team perform a design review (if/when applicable)
  • make sure CI builds are passing (e.g.: fix lint and other errors)

@eliserichards eliserichards requested a review from a team as a code owner October 23, 2019 17:58
@changecourse
Copy link
Contributor

There's a little bit of a "flash" of the splash screen in between unlocking and the item list. Not sure if we should open a issue to fix that, or ...?

It would be nice to open an additional issue if we're not able to fix that as part of this PR. I had noticed this on 3.0 when unlocking from biometrics, but hadn't had a chance to log.

@eliserichards
Copy link
Contributor Author

Filed #1027.

@eliserichards eliserichards force-pushed the 992-hide-keyboard branch 3 times, most recently from 7e2e2ca to 9d98913 Compare October 30, 2019 17:01
Copy link
Contributor

@jhugman jhugman left a comment

Choose a reason for hiding this comment

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

I have a suggestion, which you can take if you want. This looks fine otherwise and shouldn't need another review cycle.

errorHelper.hideNetworkError(parent = view!!, child = view!!.refreshContainer.entriesView)
errorHelper.hideNetworkError(
parent = view!!,
child = view!!.refreshContainer.entriesView
Copy link
Contributor

Choose a reason for hiding this comment

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

😻

private fun closeKeyboard() {
val imm = context?.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.hideSoftInputFromWindow(view!!.windowToken, 0)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder whether we should put this into the base Fragment class and call it from the base onPause() method.

@eliserichards eliserichards merged commit 6cdda63 into master Oct 31, 2019
@eliserichards eliserichards mentioned this pull request Oct 31, 2019
6 tasks
eliserichards pushed a commit that referenced this pull request Oct 31, 2019
@eliserichards eliserichards deleted the 992-hide-keyboard branch November 8, 2019 17:31
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.

Keyboard is not automatically hidden in entry list view when unlocking the app using a passcode
3 participants