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

Commit 347a49e6 authored by Ilya Matyukhin's avatar Ilya Matyukhin
Browse files

Make UDFPS overlay a trusted overlay

Bug: 173627942
Test: logcat -s InputDispatcher:W reports no untrusted touches
Change-Id: I029e1613ffb6ba645050f2afed8470665bf914ad
parent 9d0c6ff7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -194,6 +194,7 @@ class UdfpsController implements DozeReceiver {
        mCoreLayoutParams.setFitInsetsTypes(0);
        mCoreLayoutParams.layoutInDisplayCutoutMode =
                WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
        mCoreLayoutParams.privateFlags = WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY;

        mView = (UdfpsView) inflater.inflate(R.layout.udfps_view, null, false);
        mView.setSensorProperties(mSensorProps);