Remove the redundant getExpansionFraction() method from NotificationPanelViewController.

Bug: 254245550.
Test: Manually tested on a device.
Change-Id: I6e5cf7c433d6dc1eaa5864401b71bd82ce955c73
This commit is contained in:
Danny Burakov
2023-01-13 16:05:24 +01:00
parent b4c0f42bd1
commit fc1fc3e94e

View File

@@ -704,7 +704,7 @@ public final class NotificationPanelViewController implements Dumpable {
updatePanelExpansionAndVisibility();
};
private final Runnable mMaybeHideExpandedRunnable = () -> {
if (getExpansionFraction() == 0.0f) {
if (getExpandedFraction() == 0.0f) {
postToView(mHideExpandedRunnable);
}
};
@@ -5370,10 +5370,6 @@ public final class NotificationPanelViewController implements Dumpable {
InteractionJankMonitor.CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE);
}
private float getExpansionFraction() {
return mExpandedFraction;
}
private ShadeExpansionStateManager getShadeExpansionStateManager() {
return mShadeExpansionStateManager;
}