nextcloud / nextcloud/notes-android

View jumps to top when rotating screen

Open
#2,024 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
1.1k
Forks
168
Avg merge
1d 17h
Merged PRs (30d)
31

Description

Describe the bug
The following affects a note that is longer than the entire phone screen can show:
When scrolling down a note, the app keeps the current view's section when I rotate the screen. However, the current position is lost when I tap into the note for editing mode and rotate the screen. The note will jump to the top in landscape mode. I need to scroll down again, then edit in landscape mode, flip back to vertical mode and the note will jump to the top again. I would first need to close editing mode so that the note is saved to prevent losing the current position.

To Reproduce
Steps to reproduce the behavior:

  1. Open a long note.
  2. Scroll half way,
  3. tap in it to edit,
  4. rotate the screen.

Expected behavior
The app must not lose the current position by keeping the current view section in a way that the curser is placed horizontally relative to as it is vertically and vice versa.

Smartphone (please complete the following information):

  • Nextcloud Notes version (Android app): 4.1.0
  • F-Droid or Play Store: F-Droid
  • Android version: 14
  • Device: Sony Xperia 5

Server

  • Nextcloud version: 26.0.11
  • Nextcloud Notes version (server app): 4.9.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in the Android app with a long note: scroll halfway, enter editing mode, and rotate between portrait and landscape. Compare the preserved position outside editing mode with the position during editing, using Android version 14 and app version 4.1.0. Done means the current note section and cursor-relative position remain visible after each rotation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.