Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2ae250e authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android Git Automerger
Browse files

am 7cc56bb4: am 1f98c62f: Fix unnecessary layer creation for appear animation

* commit '7cc56bb4':
  Fix unnecessary layer creation for appear animation
parents c1f197ca 7cc56bb4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
        android:layout_height="match_parent"
        />

    <LinearLayout
    <com.android.keyguard.AlphaOptimizedLinearLayout
        android:id="@+id/content"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
@@ -63,6 +63,6 @@
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            />
    </LinearLayout>
    </com.android.keyguard.AlphaOptimizedLinearLayout>

</com.android.systemui.statusbar.NotificationOverflowContainer>
+7 −5
Original line number Diff line number Diff line
@@ -656,13 +656,15 @@ public abstract class ActivatableNotificationView extends ExpandableOutlineView
    }

    private void setContentAlpha(float contentAlpha) {
        View contentView = getContentView();
        if (contentView.hasOverlappingRendering()) {
            int layerType = contentAlpha == 0.0f || contentAlpha == 1.0f ? LAYER_TYPE_NONE
                    : LAYER_TYPE_HARDWARE;
        View contentView = getContentView();
            int currentLayerType = contentView.getLayerType();
            if (currentLayerType != layerType) {
                contentView.setLayerType(layerType, null);
            }
        }
        contentView.setAlpha(contentAlpha);
    }