commit | d8fb07f53428627c3e32a7e15594b00143ca6476 | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Tue Aug 02 15:39:42 2016 -0400 |
committer | Jason Monk <jmonk@google.com> | Wed Aug 03 10:03:04 2016 -0400 |
tree | 4e54b8bee0dc5773559368e6305c3d3ddca80015 | |
parent | c9682ab5b508a242f0d569857ee9f6a3b82578de [diff] |
QS Header: don't update everything unless we need to Because it leads to bad performance. Bug: 30442298 Change-Id: I4c7b68ad30a1fd4fe8245f27ce2d2b2038583d23
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStatusBarHeader.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStatusBarHeader.java index a9c4783..892fe93 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStatusBarHeader.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickStatusBarHeader.java
@@ -197,6 +197,7 @@ @Override public void setExpanded(boolean expanded) { + if (mExpanded == expanded) return; mExpanded = expanded; mHeaderQsPanel.setExpanded(expanded); updateEverything();