Make UDFPS overlay a trusted overlay

Bug: 173627942
Test: logcat -s InputDispatcher:W reports no untrusted touches
Change-Id: I029e1613ffb6ba645050f2afed8470665bf914ad
This commit is contained in:
Ilya Matyukhin
2020-11-18 15:12:22 -08:00
parent 9d0c6ff753
commit 347a49e6e2

View File

@@ -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);