diff options
| author | Nicolo' Mazzucato <nicomazz@google.com> | 2022-01-18 13:29:54 +0100 |
|---|---|---|
| committer | Nicolo' Mazzucato <nicomazz@google.com> | 2022-01-18 14:27:25 +0100 |
| commit | 691f8bbfd7b4ad293e4cfeafb740a4ea78de6cb0 (patch) | |
| tree | 21928fc656be8da5491b2cd85e7b4d072c0890d1 /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 0309ed5d490f649dea2310afe527e208d97d61e0 (diff) | |
Avoid some reinflations when unfolding
The reason why views were reinflated onSmallestScreenWidthChanged is that the userSwitcher could have been visible in one configuration, but invisible in another.
With this change, views are reinflated only if it is sure there is a visibility change of the user switcher.
From Perfetto recordings, this makes the screen switch (from external to internal) 95ms faster
Bug: 197515205
Bug: 186728895
Test: Manually tested
Change-Id: Ic887c3727a9bf911861078af72dc642621f6076e
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions
