sdm660-common: DeviceSettings: Adjust FPS Overlay
Lets adjust fps overlay place statment to get better integration on display. Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
7c6a0a04ee
commit
279f3c1659
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,7 @@ public class FPSInfoService extends Service {
|
|||
return;
|
||||
}
|
||||
|
||||
int neededWidth = mPaddingLeft + mPaddingRight + mMaxWidth + 40;
|
||||
int neededWidth = mPaddingLeft + mPaddingRight + mMaxWidth;
|
||||
int neededHeight = mPaddingTop + mPaddingBottom + 40;
|
||||
if (neededWidth != mNeededWidth || neededHeight != mNeededHeight) {
|
||||
mNeededWidth = neededWidth;
|
||||
|
@ -218,6 +218,7 @@ public class FPSInfoService extends Service {
|
|||
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE|
|
||||
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,
|
||||
PixelFormat.TRANSLUCENT);
|
||||
params.y = 50;
|
||||
params.gravity = Gravity.LEFT | Gravity.TOP;
|
||||
params.setTitle("FPS Info");
|
||||
|
||||
|
|
Loading…
Reference in a new issue