mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-17 04:31:16 +08:00
bugfix: should use the value from statusBars()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user