Fix safe area reporting with transparent FlutterActivitys. (#46060) (flutter/engine#16208)
This commit is contained in:
@@ -520,10 +520,6 @@ public class FlutterActivity extends Activity
|
||||
BackgroundMode backgroundMode = getBackgroundMode();
|
||||
if (backgroundMode == BackgroundMode.transparent) {
|
||||
getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
||||
getWindow().setFlags(
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -354,10 +354,6 @@ public class FlutterFragmentActivity extends FragmentActivity
|
||||
BackgroundMode backgroundMode = getBackgroundMode();
|
||||
if (backgroundMode == BackgroundMode.transparent) {
|
||||
getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
|
||||
getWindow().setFlags(
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS,
|
||||
WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user