nextcloud / nextcloud/android

App moved into background on lock when passcode is set

Open
#12,703 0 comments 0 reactions 0 assignees View on GitHub
bug feature: authentication stable-3.29
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. set up app passcode for Netcloud client app
2. open *All files* tab
3. lock device
4. wait more than 5 seconds
5. unlock device

### Expected behaviour

Nextcloud app prompts user for pin entry.

### Actual behaviour

Nextcloud app has been moved into background and user is presented with launcher instead.

Opening the app manually will prompt for pin entry. This is a UX/flow design problem.

### Android version

11 (AOSP image)

### Device brand and model

Google Pixel 2 (Android Studio Emulator)

### Stock or custom OS?

Stock

### Nextcloud android app version

c35b63e

### Nextcloud server version

28.0.3

### Using a reverse proxy?

No

### Android logs

_No response_

### Server error logs

_No response_

### Additional information

> [This line](https://github.com/nextcloud/android/blob/stable-3.28.0/app/src/main/java/com/owncloud/android/authentication/PassCodeManager.kt#L153) causes the app to be moved to the background when the timeout is reached. When a user locks their phone with the Nextcloud app running, they will be back at their home screen, when the phone is unlocked again. I'm not sure whether this behaviour is desirable or not. [...]

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.