Merge "Add wtf log if notification panel height is NaN"

This commit is contained in:
TreeHugger Robot
2020-12-02 23:50:25 +00:00
committed by Android (Google) Code Review

View File

@@ -2038,8 +2038,8 @@ public class NotificationPanelViewController extends PanelViewController {
maxHeight = calculatePanelHeightShade();
}
maxHeight = Math.max(min, maxHeight);
if (maxHeight == 0) {
Log.wtf(TAG, "maxPanelHeight is 0. getOverExpansionAmount(): "
if (maxHeight == 0 || isNaN(maxHeight)) {
Log.wtf(TAG, "maxPanelHeight is invalid. getOverExpansionAmount(): "
+ getOverExpansionAmount() + ", calculatePanelHeightQsExpanded: "
+ calculatePanelHeightQsExpanded() + ", calculatePanelHeightShade: "
+ calculatePanelHeightShade() + ", mStatusBarMinHeight = "