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

Commit c7ecb933 authored by Miranda Kephart's avatar Miranda Kephart
Browse files

Make EditTextActivity respect ime insets

Bug: 357027290
Fix: 357027290
Test: manual (copy long text and verify that it no longer displays
behind the IME)
Flag: EXEMPT trivial change

Change-Id: Ia8efc6446feb8d22f8408966cc22b162f8b122a4
parent 8b6d2d95
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;