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

Commit e455cd41 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecessary test."

parents 931b7f26 566c3310
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