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

Don't Use Raw Bitmaps for Thumbnails #14628

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Mar 3, 2025

  • Tests written, or not not needed

We were using raw bitmaps for media thumbnails, which resulted in lag and problematic scrolling performance. Additionally, with the multi-select feature for each binding, resetting the large thumbnails led to significant delays. To address these issues, downscaling has been implemented in this pull request to improve performance.

Before

before.mp4

After

after.mp4

@alperozturk96 alperozturk96 force-pushed the dont-use-raw-bitmap-for-thumbnails branch 3 times, most recently from fbf4dbc to 88c7e90 Compare March 14, 2025 14:58
@alperozturk96 alperozturk96 force-pushed the dont-use-raw-bitmap-for-thumbnails branch 2 times, most recently from 04c6416 to 63dc791 Compare March 19, 2025 11:05
this.listener = listener;
}

public String getImageKey() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unused function

@alperozturk96 alperozturk96 force-pushed the dont-use-raw-bitmap-for-thumbnails branch from 63dc791 to 88de95a Compare March 20, 2025 08:01
Signed-off-by: alperozturk <[email protected]>
Copy link

Codacy

Lint

TypemasterPR
Warnings5454
Errors1111

SpotBugs

CategoryBaseNew
Bad practice6565
Correctness5858
Dodgy code292292
Experimental11
Internationalization77
Malicious code vulnerability11
Multithreaded correctness77
Performance5151
Security1818
Total500500

Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14628.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants