Skip to content

Comments

fix(unified-search): thumbnail icon#16546

Draft
alperozturk96 wants to merge 16 commits intomasterfrom
fix/unified-search-thumbnail-icon
Draft

fix(unified-search): thumbnail icon#16546
alperozturk96 wants to merge 16 commits intomasterfrom
fix/unified-search-thumbnail-icon

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Feb 18, 2026

Changes

Fixes thumnail generation for files
Adds overlays for folders
Fixes title alignment for folders
Fixes late async adapter initialization
De-duplicate folder thumbnail generation logic introduces re-usable OverlayManager class - for now it's only for folder
Removes dead-codes in DisplayUtils

Before After
before after

@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.36

Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

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

Looks better 👍

@alperozturk96 @tobiasKaminsky One thing that should get fixed though is what gets tinted and that should only be folder-icons and the archive mimetype icon. Everything else shall keep their original icon's color (!)

@tobiasKaminsky
Copy link
Member

PDF should not be tinted, but remain red

@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented Feb 20, 2026

Add screenshot tests like AvatarIT for

  • folders with
    • all sharing option
    • collective
    • auto upload
    • e2e
      --> in this PR
  • files
    • all main mimetypes
      --> in new PR

@alperozturk96 alperozturk96 force-pushed the fix/unified-search-thumbnail-icon branch from 8b4a882 to eef8165 Compare February 23, 2026 12:43
@alperozturk96 alperozturk96 marked this pull request as draft February 23, 2026 16:39
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 force-pushed the fix/unified-search-thumbnail-icon branch from 234a3ef to cd55e10 Compare February 24, 2026 07:54
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96
Copy link
Collaborator Author

@AndyScherzinger

What are the licenses for these icons?

Latest version

before after

@alperozturk96
Copy link
Collaborator Author

alperozturk96 commented Feb 24, 2026

@tobiasKaminsky I added screenshot tests, but there is an issue related to view recycling.

At this line, if I remove the following code:

binding.thumbnail.apply {
           ....
            viewThemeUtils.platform.colorImageView(this, ColorRole.SECONDARY)
        }

the UI behaves incorrectly when scrolling, as shown in this screenshot:

Screenshot 2026-02-24 at 10 47 55

Currently, only folders and archives should be tinted, while file type icons should remain unchanged. Glide’s asynchronous loading in the RecyclerView complicates this: even after removing Glide or setting setHasStableIds(true), the recycling issue persists.

In the current version of the PR, the UI appears correct, but screenshot tests capture greyed-out PDFs due to the colorImageView call at the beginning of bindRemoteThumbnail. Removing this code causes some icons to disappear because of recycling.

@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4242
Correctness7575
Dodgy code256256
Experimental11
Internationalization77
Malicious code vulnerability22
Multithreaded correctness3434
Performance4444
Security1818
Total479479

@github-actions
Copy link

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16546.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.

3 participants