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

Commit 32c5c466 authored by Austin Delgado's avatar Austin Delgado Committed by Android (Google) Code Review
Browse files

Merge "Fix BP incorrect 180 rotations" into main

parents 7b05f4bb 99b2da40
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -44,6 +44,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;
@@ -653,11 +654,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);