nextcloud / nextcloud/notes-android

Can't check/uncheck a checkbox in preview mode when line starts with more than one number

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

Nobody has claimed this yet.

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

Description

Describe the bug
The notes app (or the android text view?) autolinks numbers > 1 to the contact app. This affects also the checkbox before the number. Even when exactly the checkbox is clicked, the underscored number link next to it catches the click and opens the number in the contacts app without changing the state of the checkbox. This happens for all numeric values that even can't be considered as a number.

To Reproduce

  1. Enter "12 Test" to a note
  2. Switch to "rich edit mode" view and format the line as "todo list"
  3. Go back to "plain edit mode"
  4. Enter preview
  5. Try to check/uncheck the item

Expected behavior
Checkbox should change state even when line starts with two or more numbers. Phone linking to the contacts app may be set as an option even if this disables the checkbox funktionality.

Screenshots
Screenshot_20240202-145514
Imagepipe_1

Workaround
Clicking on the text following the number ("test") or the empty space next to it is not linking the contacts app and is checking/unchecking the checkbox.

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: Pixel 8 Pro

Server

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

Bug is related to feature request #1460

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

Start by reproducing the numbered todo-list steps in preview mode on the Android app, then trace how checkbox clicks and automatic phone-number links are handled. Done means a checkbox toggles for lines beginning with multiple numbers, while the expected phone-link behavior or its option remains available.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.