mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/android: fixed forced applied alpha=0.8 window after Android S
This commit is contained in:
parent
a2f5e5f1b9
commit
a594d6d86e
|
@ -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 =
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue