mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-29 11:37:07 +08:00
do not handle cutout on Android ROM version 7 and below.
This commit is contained in:
@@ -18,6 +18,7 @@ package com.qmuiteam.qmui.widget.webview;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Build;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.v4.view.ViewCompat;
|
||||
import android.support.v4.view.WindowInsetsCompat;
|
||||
@@ -218,7 +219,7 @@ public class QMUIWebView extends WebView implements IWindowInsetLayout {
|
||||
}
|
||||
|
||||
private void setStyleDisplayCutoutSafeArea(@NonNull Rect rect) {
|
||||
if (sIsReflectionOccurError) {
|
||||
if (sIsReflectionOccurError || Build.VERSION.SDK_INT <= Build.VERSION_CODES.N) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user