question-mark
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.

Follow up: Implement proper fix for android textinput selection workaround

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Context

In https://github.com/Expensify/App/pull/11684 there was a workaround introduced. See this conversation for more detail:

https://github.com/Expensify/App/pull/11684/files#r1013587630

It’s about the android TextInput not updating its selection correctly.

Action Performed:

Select a range of text, then call textInput.setSelection(5, 5) on a text selection (for example).

Expected Result:

The android text input selection should just work as it does on web or iOS.

Actual Result:

Under some circumstances, the selection won’t get updated actually on Android.

Workaround:

Already in place

Platform:

Where is this issue occurring?

  • Android

Version Number: 1.2.25-0 Reproducible in staging?: / Reproducible in production?: / Email or phone of affected tester (no customers): / Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL: Issue reported by: @hannojg Slack conversation: /

View all open jobs on GitHub

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
JmillsExpensifycommented, Dec 21, 2022

Here’s my two cents on this issue: I think we should remove the Bug label and instead add the Planning and Weekly labels. The thing is, we already solved the “bug” in the linked issue, and this is effectively a research issue on how to potentially solve Android bugs in the upstream codebase. So yes, I think that’s great, but I also don’t think this is really within the scope of WAQ given that we have something that has resolved the bug for now.

1reaction
roryabrahamcommented, Nov 16, 2022

No, @hannojg will invoice us separately

Read more comments on GitHub >

github_iconTop Results From Across the Web

TextInput controlled selection broken on both ios and android.
Controlled selection seems to be broken on both ios and android, to demonstrate the issues I created a sample project (find the link...
Read more >
How to stop EditText from gaining focus when an activity starts ...
Try clearFocus() instead of setSelected(false) . Every view in Android has both focusability and selectability, ...
Read more >
Optimize your app for autofill - Android Developers
The autofill framework saves user input for future use by showing a "Save for autofill?" dialog after the autofill context is finished.
Read more >
Working with the EditText | CodePath Android Cliffnotes
The EditText is the standard text entry widget in Android apps. If the user needs to enter text into an app, this is...
Read more >
Implement Form Validation (Error to EditText) in Android
When user data is corrected by the user -> // There is no need to give the error message when the user //...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found