Skip to content

[TextInputLayout] Visibility and drawable problems on configuration change when using two password fields #4734

Open
@herrbert74

Description

@herrbert74

Description:

It happens when you use two password fields and the first one is hidden, and the second is not.

Expected behavior:

After both the first and second orientation change:

  • the first field stays hidden and the drawable shows hidden state (eye)
  • the second field stays visible and the drawable shows visible state(eye-crossed)

Actual behavior:

After the first orientation change:

  • the first field stays hidden, but the drawable shows visible state (eye-crossed)
  • the second field stays visible, and the drawable shows visible state(eye-crossed)

After the second orientation change:

  • the first field becomes visible, and the drawable shows visible state (eye-crossed)
  • the second field stays visible, and the drawable shows visible state(eye-crossed)

See video in comment.

Minimal sample app repro:

https://github.com/herrbert74/PasswordFields

Android API version: Android API 32 and 35

Material Library version: tested on 1.7.0 and 1.12.0, fails both

Device: Most if not all devices and emulators our team has

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions