Commit 3a517117 authored by 李增强's avatar 李增强

m

parent 9918c6d5
......@@ -263,6 +263,16 @@ public class BoostFlutterActivity extends AppCompatActivity
super.onResume();
lifecycle.handleLifecycleEvent(Lifecycle.Event.ON_RESUME);
delegate.onResume();
setNavBarColor();
}
public void setNavBarColor() {
Window window = getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
window.setNavigationBarColor(Color.argb(0, 0, 0, 0));
}
}
@Override
......
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