Skip to content

Commit e898f91

Browse files
committed
Revert "SystemUI: Improve HeadsUp expanding performance."
This reverts commit e57896a.
1 parent 7d2bd61 commit e898f91

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

packages/SystemUI/src/com/android/systemui/ExpandHelper.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ private void startExpanding(View v, int expandType) {
514514
}
515515
mExpanding = true;
516516
if (DEBUG) Log.d(TAG, "scale type " + expandType + " beginning on view: " + v);
517+
mCallback.setUserLockedChild(v, true);
517518
setView(v);
518519
setGlow(GLOW_BASE);
519520
mScaler.setView(v);
@@ -525,18 +526,13 @@ private void startExpanding(View v, int expandType) {
525526
if (DEBUG) Log.d(TAG, "working on a non-expandable child");
526527
mNaturalHeight = mOldHeight;
527528
}
528-
mCallback.setUserLockedChild(v, true);
529529
if (DEBUG) Log.d(TAG, "got mOldHeight: " + mOldHeight +
530530
" mNaturalHeight: " + mNaturalHeight);
531531
if (v != null && v.getParent() != null) {
532532
v.getParent().requestDisallowInterceptTouchEvent(true);
533533
}
534534
}
535535

536-
public float getNaturalHeight() {
537-
return mNaturalHeight;
538-
}
539-
540536
private void finishExpanding(boolean force) {
541537
if (!mExpanding) return;
542538

packages/SystemUI/src/com/android/systemui/statusbar/policy/HeadsUpNotificationView.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,6 @@ public void setUserExpandedChild(View v, boolean userExpanded) {
207207
public void setUserLockedChild(View v, boolean userLocked) {
208208
if (mHeadsUp != null && mHeadsUp.row == v) {
209209
mHeadsUp.row.setUserLocked(userLocked);
210-
211-
setMinimumHeight(userLocked
212-
? (int) mExpandHelper.getNaturalHeight() + mContentHolder.getPaddingTop()
213-
+ mContentHolder.getPaddingBottom()
214-
: 0);
215210
}
216211
}
217212

0 commit comments

Comments
 (0)