File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/src/main/java/com/samsung/microbit/ui/activity Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,13 @@ protected void onCreate(Bundle savedInstanceState) {
103103 setContentView (R .layout .activity_makecode );
104104
105105 ViewCompat .setOnApplyWindowInsetsListener ( findViewById (R .id .MakeCode ), (v , windowInsets ) -> {
106- Insets insets = windowInsets .getInsets (WindowInsetsCompat .Type .systemBars ());
106+ Insets insets = windowInsets .getInsets (
107+ WindowInsetsCompat .Type .systemBars () | WindowInsetsCompat .Type .displayCutout ());
107108 ViewGroup .MarginLayoutParams mlp = (ViewGroup .MarginLayoutParams ) v .getLayoutParams ();
108109 mlp .leftMargin = insets .left ;
109110 mlp .bottomMargin = insets .bottom ;
110111 mlp .rightMargin = insets .right ;
112+ mlp .topMargin = insets .top ;
111113 v .setLayoutParams (mlp );
112114 return WindowInsetsCompat .CONSUMED ;
113115 });
You can’t perform that action at this time.
0 commit comments