diff options
| author | 2018-01-22 08:11:17 +0000 | |
|---|---|---|
| committer | 2018-01-22 08:11:17 +0000 | |
| commit | 3c3ac03af2f6688a09d5400693b5f8c0b154a24c (patch) | |
| tree | 73c344f901b8ccf4c7543c35577cebb99b92c00a | |
| parent | dbe2852e155173f3c65e5875166943dd3285e068 (diff) | |
| parent | bb8af1cf3a09998f2bc5b3385425cf713adf3745 (diff) | |
Merge "Check attached to window before calling addTransientView."
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java index 55050995d5f6..4ca33cd3f601 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationChildrenContainer.java @@ -394,7 +394,7 @@ public class NotificationChildrenContainer extends ViewGroup { } } else if (mOverflowNumber != null) { removeView(mOverflowNumber); - if (isShown()) { + if (isShown() && isAttachedToWindow()) { final View removedOverflowNumber = mOverflowNumber; addTransientView(removedOverflowNumber, getTransientViewCount()); CrossFadeHelper.fadeOut(removedOverflowNumber, new Runnable() { |