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

com.ichi2.anki.AbstractFlashcardViewer#selectAndCopyText function not working[Bug]

Open Mohaned-Elfeky opened this issue 5 years ago • 6 comments

Reproduction Steps
  1. Enable lookup setting in advanced options
  2. open a card and press lookup text (should copy the text of the card into the clipboard if clipboard is empty)
  3. copy text manually and press lookup again (should lookup the text in external dictionary)
Expected Result

when pressing lookup text first time should copy the text automatically into the clipboard and on the second click should lookup the copied text.

Actual Result

when pressing lookup for the first time doesn't copy the text and the lookup doesn't work unless the user copies the text manually.

Debug info

AnkiDroid Version = 2.15alpha38

Android Version = 10

Manufacturer = Google

Model = Android SDK built for x86

Hardware = ranchu

Webview User Agent = Mozilla/5.0 (Linux; Android 10; Android SDK built for x86 Build/QSR1.200715.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.185 Mobile Safari/537.36

ACRA UUID = 8721fab1-8ef3-4f81-bdd8-865355533c10

Scheduler = std

Crash Reports Enabled = false

DatabaseV2 Enabled = true

Research

Enter an [x] character to confirm the points below:

  • [x] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid
  • [x] I have checked the manual and the FAQ and could not find a solution to my issue
  • [x] I have searched for similar existing issues here and on the user forum
  • [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

Mohaned-Elfeky avatar Apr 11 '21 05:04 Mohaned-Elfeky

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

welcome[bot] avatar Apr 11 '21 05:04 welcome[bot]

Sorry, I enabled loopup setting in advanced options, but can not follow step 2 and 3. Could you please give some pictures? Or maybe it depends on the selected lookup setting?

YUE-PNG avatar Apr 24 '21 16:04 YUE-PNG

try setting the lookup dictionary setting to the fourth option(Leo.org-web)

Mohaned-Elfeky avatar May 01 '21 20:05 Mohaned-Elfeky

Likely related to #5024

alsanchez avatar Jun 03 '21 20:06 alsanchez

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Aug 02 '21 20:08 github-actions[bot]

Lookup was removed

BrayanDSO avatar Aug 31 '23 08:08 BrayanDSO