material-components / material-components/material-components-android

[TextInputEditText] Performance Issue when typing.

Open
#1,686 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Issue: Performance Widget: TextField
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Description:**
There is an issue when a when use the TextInputEditText with android:inputType="textPassword" there is a half to quarter of a second delay on every single keystroke.

**Expected behavior:**
No noticeable delay between keystrokes.

**Source code:**
https://github.com/adfwhitestar/Performance-Issue-View/tree/master
Run this repo and you will see the issue.

**Android API version:** Tested SDK: 26 ,27 ,28 ,29 ,30

**Material Library version:**
This happens only at 1.2.0 and up. (1.2.0 & 1.2.1 as of writing this report.)

**Device:**
This code tested on a Pixel 2 XL running Android 10.

Original issue seen on Pixel 4, 3, 3a, 2 XL, Samsung fold, LG V40, S10e and S10

To help us triage faster, please check to make sure you are using the [latest version](https://github.com/material-components/material-components-android/releases) of the library.

This issue does not happen on 1.1.0 but does happen in 1.2.0 and 1.2.1

Media showing issue in action:
[1.2.1-issue](https://github.com/adfwhitestar/Performance-Issue-View/blob/master/media/1.2.1-issue.mp4)
[1.2.0-issue](https://github.com/adfwhitestar/Performance-Issue-View/blob/master/media/1.2.0-issue.mp4)
[1.1.0-no-issue](https://github.com/adfwhitestar/Performance-Issue-View/blob/master/media/1.1.0-no-issue.mp4)

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 running the linked Performance-Issue-View reproduction and compare typing behavior with Material Library versions 1.1.0, 1.2.0, and 1.2.1 on the reported Android configurations. Investigate the TextInputEditText path involved by android:inputType="textPassword"; done means removing the per-keystroke delay without regressing the working 1.1.0 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.