/** * Sets the actual height of this notification. This is different than the laid out {@link * View#getHeight()}, as we want to avoid layouting during scrolling and expanding. * * @param actualHeight The height of this notification. * @param notifyListeners Whether the listener should be informed about the change. */ public void setActualHeight(int actualHeight, boolean notifyListeners) { mActualHeightInitialized = true; mActualHeight = actualHeight; if (notifyListeners) { notifyHeightChanged(); } }