Skip to content
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

Fix scroll down performance #78

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

MichaelMcDonnell
Copy link
Contributor

@MichaelMcDonnell MichaelMcDonnell commented Dec 15, 2024

What is it?

  • Bugfix

Description of the changes in your PR

  • Fix scrolling down performance

Scrolling down was slow (see issue #65) because the keyboard was being hidden every time there was a scroll down event. Hiding the keyboard is an expensive operation (found through profiling). They keyboard only needs to be hidden if the search bar is being used (in focus).

Before/After Screenshots/Screen Record

The before and after was captured with HWUI turned on and scrolling up and down. Notice that the bars look the same in the after and are a lot shorter.

  • Before:
Fossify Launcher scroll down vs scroll up performance HWUI (scaled)
  • After:
Fossify Launcher scroll down vs scroll up performance HWUI after

Fixes the following issue(s)

Acknowledgement

Scrolling down was slow (see issue FossifyOrg#65) because the keyboard was being
hidden every time there was a scroll down event. Hiding the keyboard is
an expensive operation (found through profiling). They keyboard only needs
to be hidden if the search bar is being used (in focus).
@naveensingh
Copy link
Member

naveensingh commented Dec 29, 2024

found through profiling

Same, live and learn I guess. I was gonna use the scroll state to determine when to hide the keyboard but this is nicer, thanks!

@naveensingh naveensingh merged commit f29d203 into FossifyOrg:main Dec 29, 2024
2 checks passed
@MichaelMcDonnell
Copy link
Contributor Author

Yeah, I tried a couple of different solutions until I landed on this one which was the simplest thing I could think of. Thanks again!

@MichaelMcDonnell MichaelMcDonnell deleted the fix-scroll-perf branch December 29, 2024 12:44
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.

Extreme performance issues when scrolling downwards in App Drawer
2 participants