Skip to content

fix(ocfile): unsupported operation shares - #17383

Open
alperozturk96 wants to merge 4 commits into
masterfrom
fix/unsupported-operation-oc-file
Open

fix(ocfile): unsupported operation shares#17383
alperozturk96 wants to merge 4 commits into
masterfrom
fix/unsupported-operation-oc-file

Conversation

@alperozturk96

Copy link
Copy Markdown
Collaborator

Issue

Exception in thread "main"
java.lang.Unsupported OperationException java.util.AbstractList.add(AbstractList.java:155)
at
at java.util.AbstractList.add(AbstractList.java:113)
at
com.owncloud.android.ui.adapter.OCFileListAdapter. bindListItemViewHolder(OCFileListAdapter.java:613)
at com.owncloud.android.ui.adapter.OCFileListAd apter.bindHolder(OCFileListAdapter.java:504)
at com.owncloud.android.ui.adapter.OCFileListAd apter.onBindViewHolder(OCFileListAdapter.java:492)
at androidx.recyclerview.widget.RecyclerView$Ada pter.onBindViewHolder(RecyclerView.java:7747)
at
com.owncloud.android.ui.adapter.OCFileListAdapter. onBindViewHolder(OCFileListAdapter.java:1097)
at androidx.recyclerview.widget.RecyclerView$Ada pter.bindViewHolder(RecyclerView.java:7847)
at androidx.recyclerview.widget.RecyclerView$Rec ycler.tryBindViewHolderByDeadline(RecyclerView.jav
a:6646)
at androidx.recyclerview.widget.RecyclerView$Rec
ycler.tryGetViewHolderForPosition By Deadline(Recycl
erView.java:6917)
at androidx.recyclerview.widget.RecyclerView$Rec
ycler.getViewForPosition (RecyclerView.java:6757)
at androidx.recyclerview.widget.RecyclerView$Rec ycler.getViewForPosition(RecyclerView.java:6753)
at
androidx.recyclerview.widget.LinearLayoutManager$ LayoutState.next(LinearLayoutManager.java:2362) at androidx.recyclerview.widget.LinearLayoutMana ger.layoutChunk(LinearLayoutManager.java:1662) at androidx.recyclerview.widget.LinearLayoutMana
ger.fill(LinearLayoutManager.java:1622)
at
androidx.recyclerview.widget.LinearLayoutManager. onLayoutChildren(LinearLayoutManager.java:687)
at androidx.recyclerview widget.RecyclerView.disp atchLayout Step2 (RecyclerView.java:4645)
at androidx recyclerview widget RecyclerView disp.

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96

Copy link
Copy Markdown
Collaborator Author

/backport to stable-34.1.x

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

APK file: https://github.com/nextcloud/android/actions/runs/30267615489/artifacts/8655641564
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@github-actions

Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3232
Correctness6565
Dodgy code208209
Experimental11
Malicious code vulnerability22
Multithreaded correctness2525
Performance4141
Security1919
Total393394

SpotBugs increased!

@github-actions

Copy link
Copy Markdown

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.

1 participant