summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2018-11-30 18:44:48 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2018-11-30 18:44:48 +0000
commit5b1d16409a639f82d76dc1d0802d584bf3de717d (patch)
treeee49063d0c2f560988fecebcc3f2d1796482e777
parent94da729e426ec8f806411cf63b3e783d0b1c5838 (diff)
parent9f1866457126712821c6a226e68e179529713038 (diff)
Merge "Fixed an issue where the notification could be blank"
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java
index 92d1b452bf44..689d6d530308 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java
@@ -492,12 +492,12 @@ public class NotificationContentView extends FrameLayout {
if (child == null) {
mExpandedChild = null;
mExpandedWrapper = null;
- if (mVisibleType == VISIBLE_TYPE_EXPANDED) {
- mVisibleType = VISIBLE_TYPE_CONTRACTED;
- }
if (mTransformationStartVisibleType == VISIBLE_TYPE_EXPANDED) {
mTransformationStartVisibleType = UNDEFINED;
}
+ if (mVisibleType == VISIBLE_TYPE_EXPANDED) {
+ selectLayout(false /* animate */, true /* force */);
+ }
return;
}
addView(child);
@@ -530,12 +530,12 @@ public class NotificationContentView extends FrameLayout {
if (child == null) {
mHeadsUpChild = null;
mHeadsUpWrapper = null;
- if (mVisibleType == VISIBLE_TYPE_HEADSUP) {
- mVisibleType = VISIBLE_TYPE_CONTRACTED;
- }
if (mTransformationStartVisibleType == VISIBLE_TYPE_HEADSUP) {
mTransformationStartVisibleType = UNDEFINED;
}
+ if (mVisibleType == VISIBLE_TYPE_HEADSUP) {
+ selectLayout(false /* animate */, true /* force */);
+ }
return;
}
addView(child);
@@ -557,12 +557,12 @@ public class NotificationContentView extends FrameLayout {
if (child == null) {
mAmbientChild = null;
mAmbientWrapper = null;
- if (mVisibleType == VISIBLE_TYPE_AMBIENT) {
- mVisibleType = VISIBLE_TYPE_CONTRACTED;
- }
if (mTransformationStartVisibleType == VISIBLE_TYPE_AMBIENT) {
mTransformationStartVisibleType = UNDEFINED;
}
+ if (mVisibleType == VISIBLE_TYPE_AMBIENT) {
+ selectLayout(false /* animate */, true /* force */);
+ }
return;
}
addView(child);