Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6398c403 authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

Merge "Make EditTextActivity respect ime insets" into main

parents b381000f c7ecb933
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -66,7 +66,8 @@ public class EditTextActivity extends Activity
                    @Override
                    public WindowInsets onApplyWindowInsets(@NonNull View view,
                            @NonNull WindowInsets windowInsets) {
                        Insets insets = windowInsets.getInsets(WindowInsets.Type.systemBars());
                        Insets insets = windowInsets.getInsets(
                                WindowInsets.Type.systemBars() | WindowInsets.Type.ime());
                        ViewGroup.MarginLayoutParams layoutParams =
                                (ViewGroup.MarginLayoutParams) view.getLayoutParams();
                        layoutParams.leftMargin = insets.left;