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

Commit 99b2da40 authored by Austin Delgado's avatar Austin Delgado
Browse files

Fix BP incorrect 180 rotations

Test: atest com.android.systemui.biometrics
Bug: 327135972
Flag: None
Change-Id: I6324fbeafa57328bc0345cb6f739a8b2962b6ce9
parent a9ec5dbf
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import android.os.Looper;
import android.os.UserManager;
import android.util.Log;
import android.view.Display;
import android.view.DisplayInfo;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
@@ -632,11 +633,14 @@ public class AuthContainerView extends LinearLayout
        if (display == null) {
            return false;
        }

        final DisplayInfo cachedDisplayInfo = new DisplayInfo();
        display.getDisplayInfo(cachedDisplayInfo);
        if (mBiometricView == null || !shouldUpdatePositionForUdfps(mBiometricView.asView())) {
            return false;
        }

        final int displayRotation = display.getRotation();
        final int displayRotation = cachedDisplayInfo.rotation;
        switch (displayRotation) {
            case Surface.ROTATION_0:
                mPanelController.setPosition(AuthPanelController.POSITION_BOTTOM);