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

Commit b5e36b7f authored by Johan Redestig's avatar Johan Redestig Committed by Robert Carr
Browse files

Use privateFlags for the preserve geometry check

PRIVATE_FLAG_PRESERVE_GEOMETRY flag is set to privateFlag, thus this
path wasn't really used triggering side-effects with SurfaceView
placement.

Bug: 27607148
Author: Oleksiy Avramchenko <oleksiy.avramchenko@sonymobile.com>
Change-Id: Ic2708bbcc9c2ab1cfaf324b6fd539a1ad027429c
parent 5868ea7e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2621,7 +2621,8 @@ public class WindowManagerService extends IWindowManager.Stub
                }

                // Odd choice but less odd than embedding in copyFrom()
                if ((attrs.flags & WindowManager.LayoutParams.PRIVATE_FLAG_PRESERVE_GEOMETRY) != 0) {
                if ((attrs.privateFlags & WindowManager.LayoutParams.PRIVATE_FLAG_PRESERVE_GEOMETRY)
                        != 0) {
                    attrs.x = win.mAttrs.x;
                    attrs.y = win.mAttrs.y;
                    attrs.width = win.mAttrs.width;