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();
|
.getDecorView();
|
||||||
ViewGroup rootView = decorView.findViewById(android.R.id.content);
|
ViewGroup rootView = decorView.findViewById(android.R.id.content);
|
||||||
Drawable windowBackground = decorView.getBackground();
|
Drawable windowBackground = decorView.getBackground();
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
if (Build.VERSION.SDK_INT >= 31) {
|
||||||
blurView
|
blurView
|
||||||
.setupWith(rootView, new RenderEffectBlur())
|
.setupWith(rootView, new RenderEffectBlur())
|
||||||
.setFrameClearDrawable(windowBackground)
|
.setFrameClearDrawable(windowBackground)
|
||||||
|
|
Loading…
Reference in New Issue