Fixed a flickering when expanding and the notifications updates

Change-Id: Idda8f5cfc61c3c561963eb3ccfffece9fbf5cde3
Fixes: 28557444
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
index 1568898..334d3fa 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java
@@ -392,6 +392,9 @@
             mVisibleType = visibleType;
             updateBackgroundColor(true /* animate */);
         }
+        if (mForceSelectNextLayout) {
+            forceUpdateVisibilities();
+        }
         if (mTransformationStartVisibleType != UNDEFINED
                 && mVisibleType != mTransformationStartVisibleType
                 && getViewForVisibleType(mTransformationStartVisibleType) != null) {
@@ -508,9 +511,6 @@
                 updateBackgroundColor(animate);
             }
         }
-        if (mForceSelectNextLayout) {
-            forceUpdateVisibilities();
-        }
     }
 
     private void forceUpdateVisibilities() {