Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Oct 31, 2025

  • Tests written, or not not needed

Fixes

Screenshot 2025-10-31 at 15 42 27
FATAL EXCEPTION: main
Process: com.nextcloud.client, PID: 16378
java.lang.UnsupportedOperationException: Operation is not supported for read-only collection
at com.owncloud.android.utils.DisplayUtils.generateNewThumbnail(DisplayUtils.java:984)
at com.owncloud.android.utils.DisplayUtils.setThumbnailFirstTimeForFile(DisplayUtils.java:831)
at com.owncloud.android.utils.DisplayUtils.setThumbnail(DisplayUtils.java:822)
at com.owncloud.android.ui.adapter.UnifiedSearchCurrentDirItemViewHolder.bind(UnifiedSearchCurrentDirItemViewHolder.kt:46)
at com.owncloud.android.ui.adapter.UnifiedSearchListAdapter.onBindViewHolder(UnifiedSearchListAdapter.kt:192)

Changes

ArrayList used instead of List.

How to reproduce?

  1. Perform a fresh installation of the application.
  2. Query a search (e.g., "a") and submit using the Done action on the keyboard.
  3. Repeat the process multiple times in quick succession and press back from toolbar

Signed-off-by: alperozturk <alper_ozturk@proton.me>
@github-actions
Copy link

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

@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.34

@tobiasKaminsky tobiasKaminsky merged commit 33feff4 into master Nov 5, 2025
14 of 22 checks passed
@tobiasKaminsky tobiasKaminsky deleted the fix/read-only-collection branch November 5, 2025 09:10
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