Cache tile state at adapter level
When receiving a new state update, only update UI if state has changed. Drop icon supplier and use icon which can be used for comparison. Bug: 356254554 Flag: com.android.systemui.qs_new_tiles Test: manual. Open and close the shade. Verify new tiles on the first page no longer call handleStateChange 6-10 times. 2 times is ideal. Test: manual. Run quicksettings-3-jank-suite and verify perfetto_cuj_systemui-NOTIFICATION_SHADE_QS_EXPAND_COLLAPSE-counter_metrics-missed_app_frames-mean does not increase. Change-Id: I43ac4dd4cd88789db5f1c4b9ef774fdbd8a72446
Loading
Please register or sign in to comment