Skip to content
Commit 691f8bbf authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

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
parent 0309ed5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment