Remove unused shelf state

Bug: 175410557
Test: manual, no regressions
Change-Id: Ib29b4b3c7daceec5874861713dc29df281a5e37e
This commit is contained in:
Lyn Han
2020-12-21 15:52:41 -06:00
parent a0334be887
commit 96a8bf6e14

View File

@@ -197,7 +197,6 @@ public class NotificationShelf extends ActivatableNotificationView implements
viewState.hasItemsInStableShelf = lastViewState.inShelf;
viewState.hidden = !mAmbientState.isShadeExpanded()
|| mAmbientState.isQsCustomizerShowing();
viewState.maxShelfEnd = maxShelfEnd;
} else {
viewState.hidden = true;
viewState.location = ExpandableViewState.LOCATION_GONE;
@@ -823,10 +822,6 @@ public class NotificationShelf extends ActivatableNotificationView implements
return - (getIntrinsicHeight() - mStatusBarHeight) / 2;
}
public int getNotificationMergeSize() {
return getIntrinsicHeight();
}
@Override
public boolean hasNoContentHeight() {
return true;
@@ -1018,7 +1013,6 @@ public class NotificationShelf extends ActivatableNotificationView implements
private class ShelfState extends ExpandableViewState {
private float openedAmount;
private boolean hasItemsInStableShelf;
private float maxShelfEnd;
@Override
public void applyToView(View view) {