Commit fd39ca34 authored by Yacumima's avatar Yacumima

compat apply windows insets

parent e774181b
...@@ -26,6 +26,7 @@ package com.taobao.idlefish.flutterboost; ...@@ -26,6 +26,7 @@ package com.taobao.idlefish.flutterboost;
import android.content.Context; import android.content.Context;
import android.graphics.Bitmap; import android.graphics.Bitmap;
import android.os.Build; import android.os.Build;
import android.support.v4.view.ViewCompat;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.AttributeSet; import android.util.AttributeSet;
import android.view.SurfaceHolder; import android.view.SurfaceHolder;
...@@ -203,6 +204,8 @@ public class BoostFlutterView extends FlutterView { ...@@ -203,6 +204,8 @@ public class BoostFlutterView extends FlutterView {
super.onApplyWindowInsets(mCurrentWindowInsets); super.onApplyWindowInsets(mCurrentWindowInsets);
} }
} }
}else {
ViewCompat.requestApplyInsets(this);
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment