Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG - double clicking a word sometimes deletes it in Gmail + Flickering problem + more

See original GitHub issue

The method AnysoftKeyboard::performRestartWordSuggestion is “patchy” because it does the following:

ic.deleteSurroundingText(toLeft.length(), toRight.length());
ic.setComposingText(word, 1);

The input connection doesn’t have to delete text and re paste it, just for the suggestions to work. Please consider using setComposingRegion or something else.

This current mechanism causes several problems: flickering upon moving the cursor, problems with styled text (for example in facebook), and the following problem:

Steps to reproduce

  1. Enable “suggestions restart” in the keyboard settings.
  2. Compose a new message in Gmail
  3. Write some words (with spaces between them)
  4. double click some words several times until the bug happens.

Expected behaviour

Double clicking a word should select it.

Actual behaviour

Sometimes the word is deleted from the input.

Android OS version: 7.1.1

Device manufacturer and model: Samsung Note 8

List of installed add-ons (like languages, or themes): defaults

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

mennycommented, Apr 2, 2018

@sabisab and thank you for the tip.

mennycommented, Apr 2, 2018

Great! Thanks for verifying

On Mon, Apr 2, 2018, 4:36 AM Tuko wrote:

working great 😃

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub, or mute the thread .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Important Bug Fix: Double-clicking on text is not possible - Witty
Remove out of position highlights when editing existing text. Update the highlighting when doing changes to the configuration. Release 1.22.
Read more >
How to fix screen flickering issue on MS Word | How-to
Step 7: Click on Okay and exit. The screen flickering issue should be fixed with this modification.
Read more >
Google Chrome Flickering? Here's How To Fix It | SoftwareKeep
Are you experiencing screen flickering when using Google Chrome? Learn how to fix this error by reading this article.
Read more >
The Most Common Chromebook Problems and How to Fix Them
Facing annoying issues with your Chromebook? If you need help, try our Chromebook troubleshooting guide to see if we can figure out the...
Read more >
Fixes or workarounds for recent issues in Outlook for PC
For issues that are not covered on this page, we have multiple tools to help you automatically diagnose and fix a range of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found