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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user