nextcloud / nextcloud/android

Client app crashes when going into tablet mode.

Open
#15,740 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

1. Fresh install of 10-1-25 dev version
2. Login to server
3. The app is now stuck as the client does not recognize the browser login. Browser is on the "you may now close" page.
4. It sat like this for many minutes. I likely closed the Chromebook at some point.
5. Fold the keyboard to place the Chromebook into tablet mode.
6. Error raised.

### Expected behaviour

App should transition into tablet mode.

### Actual behaviour

Crashed.

### Android version

140.0.7339.229

### Device brand and model

Lenovo Chromebook

### Stock or custom OS?

Stock

### Nextcloud android app version

Dev 10-01-2025

### Nextcloud server version

31.0.8

### Using a reverse proxy?

Yes

### Android logs

### Cause of error
```java
Exception in thread "main" java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.ScrollView$SavedState
at android.widget.ScrollView.onRestoreInstanceState(ScrollView.java:1964)
at android.view.View.dispatchRestoreInstanceState(View.java:21560)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4001)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4007)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4007)
at android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:4007)
at android.view.View.restoreHierarchyState(View.java:21538)
at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2216)
at android.app.Activity.onRestoreInstanceState(Activity.java:1767)
at com.owncloud.android.authentication.AuthenticatorActivity.onRestoreInstanceState(AuthenticatorActivity.java:826)
at android.app.Activity.performRestoreInstanceState(Activity.java:1720)
at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1449)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3713)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2304)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7950)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

```

### App information
* ID: `com.nextcloud.android.beta`
* Version: `20251001`
* Build flavor: `versionDev`

### Device information
* Brand: `google`
* Device: `dedede_cheets`
* Model: `dedede`
* Id: `R140-16371.61.0`
* Product: `dedede`

### Firmware
* SDK: `33`
* Release: `13`
* Incremental: `14121168`

### Server error logs

```bash
Only unrelated antivirus database errors in the time frame.
```

### 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.