bugfix: should use the value from statusBars()

This commit is contained in:
cgspine
2022-04-13 11:05:54 +08:00
parent f3f81311c2
commit 3905ee35d2
@@ -280,7 +280,7 @@ public class QMUINotchHelper {
if(rootWindowInsets == null){
return;
}
Insets cutoutInsets = rootWindowInsets.getInsets(WindowInsetsCompat.Type.systemBars() | WindowInsetsCompat.Type.displayCutout());
Insets cutoutInsets = rootWindowInsets.getInsets(WindowInsetsCompat.Type.statusBars() | WindowInsetsCompat.Type.displayCutout());
out.set(cutoutInsets.left, cutoutInsets.top, cutoutInsets.right, cutoutInsets.bottom);
}