fix(android): build issue on compileSdkVersion < 31 (#485)
This commit is contained in:
parent
2bbc512083
commit
6273292c9e
|
@ -37,7 +37,7 @@ class BlurViewManager extends ViewGroupManager<BlurView> {
|
|||
.getDecorView();
|
||||
ViewGroup rootView = decorView.findViewById(android.R.id.content);
|
||||
Drawable windowBackground = decorView.getBackground();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
if (Build.VERSION.SDK_INT >= 31) {
|
||||
blurView
|
||||
.setupWith(rootView, new RenderEffectBlur())
|
||||
.setFrameClearDrawable(windowBackground)
|
||||
|
|
Loading…
Reference in New Issue