Fix safe area reporting with transparent FlutterActivitys. (#46060) (flutter/engine#16208)

This commit is contained in:
Matt Carroll
2020-02-07 14:57:06 -08:00
committed by GitHub
parent 444d911b46
commit 7a8e698211
2 changed files with 0 additions and 8 deletions

View File

@@ -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
);
}
}

View File

@@ -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
);
}
}