Merge "Fix UDFPS overlay being offset in landscape mode"
This commit is contained in:
committed by
Android (Google) Code Review
commit
a1117f3a16
@@ -187,12 +187,13 @@ class UdfpsController implements DozeReceiver {
|
||||
// TODO(b/152419866): Use the UDFPS window type when it becomes available.
|
||||
WindowManager.LayoutParams.TYPE_BOOT_PROGRESS,
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN
|
||||
| WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR
|
||||
| WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL
|
||||
| WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED,
|
||||
PixelFormat.TRANSLUCENT);
|
||||
mCoreLayoutParams.setTitle(TAG);
|
||||
mCoreLayoutParams.setFitInsetsTypes(0);
|
||||
mCoreLayoutParams.layoutInDisplayCutoutMode =
|
||||
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
|
||||
|
||||
mView = (UdfpsView) inflater.inflate(R.layout.udfps_view, null, false);
|
||||
mView.setSensorProperties(mSensorProps);
|
||||
|
||||
Reference in New Issue
Block a user