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

Commit 5baa2798 authored by Svet Ganov's avatar Svet Ganov Committed by Svetoslav Ganov
Browse files

Properly layout InlineContentView

bug:152723089
bug:152319052

Test: atest android.view.inputmethod.cts.InlineSuggestionTest

Change-Id: I656c2fb75560719210aa1efe8b9f06a0ced4d7e0
parent d7437c58
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -160,7 +160,7 @@ public class InlineContentView extends ViewGroup {


    @Override
    @Override
    public void onLayout(boolean changed, int l, int t, int r, int b) {
    public void onLayout(boolean changed, int l, int t, int r, int b) {
        mSurfaceView.layout(l, t, r, b);
        mSurfaceView.layout(0, 0, getMeasuredWidth(), getMeasuredHeight());
    }
    }


    /**
    /**
+5 −1
Original line number Original line Diff line number Diff line
@@ -45,6 +45,10 @@ import android.view.ViewGroup;
 * under the hosting window which could be useful in some cases, e.g. animating transitions.
 * under the hosting window which could be useful in some cases, e.g. animating transitions.
 * At this point the inlined content will not be interactive and the touch events would
 * At this point the inlined content will not be interactive and the touch events would
 * be delivered to your app.
 * be delivered to your app.
 * <p>
 * Instances of this class are created by the platform and can be programmatically attached
 * to your UI. Once you attach and detach this view it can not longer be reused and you
 * should obtain a new view from the platform via the dedicated APIs.
 */
 */
public class InlineContentView extends ViewGroup {
public class InlineContentView extends ViewGroup {


@@ -157,7 +161,7 @@ public class InlineContentView extends ViewGroup {


    @Override
    @Override
    public void onLayout(boolean changed, int l, int t, int r, int b) {
    public void onLayout(boolean changed, int l, int t, int r, int b) {
        mSurfaceView.layout(l, t, r, b);
        mSurfaceView.layout(0, 0, getMeasuredWidth(), getMeasuredHeight());
    }
    }


    /**
    /**