Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Multi touch causes some problems

Open ZornHadNoChoice opened this issue 5 months ago • 4 comments

Checked for duplicates?

  • [x] This issue is not a duplicate

Does it also happen in the desktop version?

  • [x] This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

This bug has many outcomes, but all of them are caused by touching multiple things at the same time. For example:

  1. Just press and hold on +2 decks at the same time.
  2. You will get multiple menus stacking on top of each other.

Expected behaviour

Only things that need multi touch should accept multi touch.

Debug info

AnkiDroid Version = 2.21alpha19 (246c2a5135c58a9cac452e16b9593585f394958d)
Backend Version = 0.1.53-anki25.02.7 (25.02.7 98253c81cb3c4d203acec48d6eae6b488bf484d0)
Android Version = 13 (SDK 33)
ProductFlavor = full
Device Info = Xiaomi | POCO | mondrian | mondrian_global | 23013PC75G | qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/137.0.7151.61 Mobile Safari/537.36
ACRA UUID = b9d03d9a-5af9-4e67-987e-cc15799171e2
FSRS = 2.0.3 (Enabled: true)
Crash Reports Enabled = true

(Optional) Anything else you want to share?

You can also tap multiple decks which seems to duplicate the reviewer (you need to swipe several times to leave the reviewer).

You can also swipe down after pressing and holding on a deck, and you will get a pop-up on top of the deck menu if there are syncing errors (e.g. if there's no internet).

Even worse still, you can crash the app by opening the deck search pop-up in the browser, tapping the + button and a deck at the same time to close the pop-up but open the create deck pop-up, then typing a name and pressing ok. The app closes and you get a toast "Anki has encountered a problem".

You can do similar stuff in other screens like the browser and the app settings.

This was originally part of https://github.com/ankidroid/Anki-Android/issues/18529, but I realized that the two problems might be slightly different.

Research

  • [x] I have checked the manual and the FAQ and could not find a solution to my issue
  • [x] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

ZornHadNoChoice avatar Jun 15 '25 10:06 ZornHadNoChoice

That's kinda the default behavior of Android. You can also see that in other apps, including Google ones. Most of times, you can only trigger it if you really want to do it just because you want to do it. It's similar to the bike stick meme

Image

I'll let this open to see if anyone comes with a simple solution. If the solution needs too much work or the stale bot come here, this should be closed.

BrayanDSO avatar Jun 15 '25 11:06 BrayanDSO

Interesting, I never noticed that in any other apps but I just tested it and it's true. I think I got this bug while actually using AnkiDroid maybe once.

ZornHadNoChoice avatar Jun 15 '25 11:06 ZornHadNoChoice

Please can i help , i will fix it.

mokhtarmoustafa avatar Jun 16 '25 05:06 mokhtarmoustafa

@mokhtarmoustafa probably best to try another issue, given that it's a widespread Android issue

david-allison avatar Jun 16 '25 15:06 david-allison

Closing this one.

BrayanDSO avatar Jul 27 '25 16:07 BrayanDSO