Merge "Only notify listeners when actual height changes" into tm-qpr-dev am: ad5b95a679
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18889352 Change-Id: I7bec5b450eeb4cd4107ecbf28fd40a2ee62dafe7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -186,10 +186,12 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable {
|
||||
* @param notifyListeners Whether the listener should be informed about the change.
|
||||
*/
|
||||
public void setActualHeight(int actualHeight, boolean notifyListeners) {
|
||||
mActualHeight = actualHeight;
|
||||
updateClipping();
|
||||
if (notifyListeners) {
|
||||
notifyHeightChanged(false /* needsAnimation */);
|
||||
if (mActualHeight != actualHeight) {
|
||||
mActualHeight = actualHeight;
|
||||
updateClipping();
|
||||
if (notifyListeners) {
|
||||
notifyHeightChanged(false /* needsAnimation */);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user