Inset floating rotation button.

Fixes: 134182303
Test: Manual
Change-Id: Ic22aa2744f9e99baf4c6dd9533c5f6794b6587d5
This commit is contained in:
Tracy Zhou
2019-06-05 15:12:01 -07:00
parent 289583ec1a
commit 7c6ef34847

View File

@@ -73,8 +73,7 @@ public class FloatingRotationButton implements RotationButton {
return false;
}
mIsShowing = true;
int flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
| WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
int flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
final WindowManager.LayoutParams lp = new WindowManager.LayoutParams(mDiameter, mDiameter,
mMargin, mMargin, WindowManager.LayoutParams.TYPE_NAVIGATION_BAR_PANEL, flags,
PixelFormat.TRANSLUCENT);