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

Commit e0e75746 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add SPLIT_TOUCH to UdfpsView" into sc-v2-dev am: decdf37b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16242364

Change-Id: I726a937df0a529b0c34f21ce50f26d180a92b1e7
parents 6548038d decdf37b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -583,7 +583,7 @@ public class UdfpsController implements DozeReceiver {

        mCoreLayoutParams = new WindowManager.LayoutParams(
                WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG,
                Utils.FINGERPRINT_OVERLAY_LAYOUT_PARAM_FLAGS,
                0 /* flags set in computeLayoutParams() */,
                PixelFormat.TRANSLUCENT);
        mCoreLayoutParams.setTitle(TAG);
        mCoreLayoutParams.setFitInsetsTypes(0);
@@ -678,7 +678,8 @@ public class UdfpsController implements DozeReceiver {
        final int paddingX = animation != null ? animation.getPaddingX() : 0;
        final int paddingY = animation != null ? animation.getPaddingY() : 0;

        mCoreLayoutParams.flags = Utils.FINGERPRINT_OVERLAY_LAYOUT_PARAM_FLAGS;
        mCoreLayoutParams.flags = Utils.FINGERPRINT_OVERLAY_LAYOUT_PARAM_FLAGS
                | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH;
        if (animation != null && animation.listenForTouchesOutsideView()) {
            mCoreLayoutParams.flags |= WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH;
        }