nextcloud / nextcloud/android

select picture and scroll

Open
#16,209 0 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

If you select more than one pictures and scroll down for more then click to select a new picture and in that case I get this exception below.
It looks like I can select media files from the current view only...

### Expected behaviour

I want to select pictures from my all files.

### Actual behaviour

I can select pictures/videos from the files what I see on the current view

### Android version

16

### Device brand and model

nothing phone 2a

### Stock or custom OS?

Stock

### Nextcloud android app version

3.34.1

### Nextcloud server version

0.0.0

### Using a reverse proxy?

No

### Android logs

### Cause of error
```java
Exception in thread "main" java.lang.IllegalStateException: Two different ViewHolders have the same stable ID. Stable IDs in your adapter MUST BE unique and SHOULD NOT change.
ViewHolder 1:GalleryRowHolder{2752e57 position=9 id=137303, oldPos=-1, pLpos:-1 not recyclable(1)}
View Holder 2:GalleryRowHolder{e35553e position=8 id=137303, oldPos=-1, pLpos:-1} com.owncloud.android.ui.EmptyRecyclerView{260cf62 VFED..... ......ID 0,0-1084,2223 #7f0a02f3 app:id/list_root aid=1073742181}, adapter:com.owncloud.android.ui.adapter.GalleryAdapter@b63a443, layout:androidx.recyclerview.widget.GridLayoutManager@a3458f3, context:com.owncloud.android.ui.activity.FileDisplayActivity@c55d073
at androidx.recyclerview.widget.RecyclerView.handleMissingPreInfoForChangeError(RecyclerView.java:4778)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:4702)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:4367)
at androidx.recyclerview.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:2095)
at androidx.recyclerview.widget.RecyclerView$1.run(RecyclerView.java:468)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1850)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1859)
at android.view.Choreographer.doCallbacks(Choreographer.java:1409)
at android.view.Choreographer.doFrame(Choreographer.java:1289)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1826)
at android.os.Handler.handleCallback(Handler.java:995)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:283)
at android.os.Looper.loop(Looper.java:392)
at android.app.ActivityThread.main(ActivityThread.java:9231)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:633)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)

```

### App information
* ID: `com.nextcloud.client`
* Version: `30340190`
* Build flavor: `gplay`

### Device information
* Brand: `Nothing`
* Device: `Pacman`
* Model: `A142`
* Id: `BP2A.250605.031.A3`
* Product: `PacmanEEA`

### Firmware
* SDK: `36`
* Release: `16`
* Incremental: `2511282240`

### Server error logs

```bash

```

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.