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
Loading
Please register or sign in to comment