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

Commit 566c3310 authored by Romain Guy's avatar Romain Guy
Browse files

Remove unnecessary test.

Change-Id: I7cb797f4be70ecd40a65c51e92a8e8722e49dec2
parent 1a81aea8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -501,7 +501,7 @@ public final class ViewRoot extends Handler implements ViewParent,
        final boolean hardwareAccelerated = 
                (attrs.flags & WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;

        if (attrs != null && hardwareAccelerated) {
        if (hardwareAccelerated) {
            // Only enable hardware acceleration if we are not in the system process
            // The window manager creates ViewRoots to display animated preview windows
            // of launching apps and we don't want those to be hardware accelerated