mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 04:36:07 +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.
|
// 1. Navigation bar won't go away because view gets focus.
|
||||||
// 2. Underlying activity lost focus and cannot receive input.
|
// 2. Underlying activity lost focus and cannot receive input.
|
||||||
lp.flags = WindowManager.LayoutParams.FLAG_FULLSCREEN |
|
lp.flags = WindowManager.LayoutParams.FLAG_FULLSCREEN |
|
||||||
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE |
|
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
|
||||||
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE;
|
|
||||||
}
|
}
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||||
lp.layoutInDisplayCutoutMode =
|
lp.layoutInDisplayCutoutMode =
|
||||||
|
|
|
@ -212,8 +212,7 @@ class SurfaceManager(context: Context) : SurfaceHolder.Callback {
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
private const val VIEW_FLAG_NOT_FOCUSABLE =
|
private const val VIEW_FLAG_NOT_FOCUSABLE =
|
||||||
WindowManager.LayoutParams.FLAG_FULLSCREEN or
|
WindowManager.LayoutParams.FLAG_FULLSCREEN or
|
||||||
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or
|
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
|
||||||
WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue