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

Commit daf4e256 authored by Adithya R's avatar Adithya R Committed by Michael Bestas
Browse files

SystemUI: AuthController: Fix ripple animation for side fp devices

 * start animation from right side of display and not middle,
   as thats where the powerbutton/fingerprint sensor is located
   on these devices

Change-Id: I186f1a50e8623055ce6b04aded9b854ac30cbe4a
parent a1e0a426
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -479,7 +479,15 @@ public class AuthController extends SystemUI implements CommandQueue.Callbacks,
                    (float) faceAuthLocation[1]);
        }

        mFingerprintLocation = new PointF(DisplayUtils.getWidth(mContext) / 2,
        int fingerprintLocationX;
        if (mFingerprintManager != null && mFingerprintManager.isPowerbuttonFps()) {
            fingerprintLocationX = DisplayUtils.getWidth(mContext);
        } else {
            fingerprintLocationX = DisplayUtils.getWidth(mContext) / 2;
        }

        mFingerprintLocation = new PointF(
                fingerprintLocationX,
                mContext.getResources().getDimensionPixelSize(
                com.android.systemui.R.dimen.physical_fingerprint_sensor_center_screen_location_y));