a/android: fixed forced applied alpha=0.8 window after Android S

This commit is contained in:
SeungHoon Han 2022-12-01 14:06:08 +09:00 committed by Ryan Pavlik
parent a2f5e5f1b9
commit a594d6d86e
2 changed files with 2 additions and 4 deletions

View file

@ -146,8 +146,7 @@ public class MonadoView extends SurfaceView implements SurfaceHolder.Callback, S
// 1. Navigation bar won't go away because view gets focus.
// 2. Underlying activity lost focus and cannot receive input.
lp.flags = WindowManager.LayoutParams.FLAG_FULLSCREEN |
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
lp.layoutInDisplayCutoutMode =

View file

@ -212,8 +212,7 @@ class SurfaceManager(context: Context) : SurfaceHolder.Callback {
@Suppress("DEPRECATION")
private const val VIEW_FLAG_NOT_FOCUSABLE =
WindowManager.LayoutParams.FLAG_FULLSCREEN or
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
}
}