summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2020-03-31 18:42:29 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-03-31 18:42:29 +0000
commit7ca55ee7f60bfccd61a40203d74b762c408d3ad9 (patch)
tree00d6f6d8b19cddb29630f8437efa0661b0a2a6e6
parent8f08b1cd401f7059f8047f1b4332d070a0180efd (diff)
parent693601db798ee43d537a45d480e1442799fe0b82 (diff)
Merge "Fixed error that was repeatedly polluting the log" into rvc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
index d7f2ae43cf9e..651623b45f6a 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationShelf.java
@@ -409,12 +409,9 @@ public class NotificationShelf extends ActivatableNotificationView implements
private void clipTransientViews() {
for (int i = 0; i < mHostLayout.getTransientViewCount(); i++) {
View transientView = mHostLayout.getTransientView(i);
- if (transientView instanceof ExpandableNotificationRow) {
- ExpandableNotificationRow transientRow = (ExpandableNotificationRow) transientView;
- updateNotificationClipHeight(transientRow, getTranslationY(), -1);
- } else {
- Log.e(TAG, "NotificationShelf.clipTransientViews(): "
- + "Trying to clip non-row transient view");
+ if (transientView instanceof ExpandableView) {
+ ExpandableView transientExpandableView = (ExpandableView) transientView;
+ updateNotificationClipHeight(transientExpandableView, getTranslationY(), -1);
}
}
}