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

Commit 134752b4 authored by Tima Vaisburd's avatar Tima Vaisburd
Browse files

Added onMovedToDisplay method to WebView

Delegate the action to WebViewProvider, by default it is no-op.

Bug: 36006397
Test: There is no implementation yet to test.
Change-Id: Ib5101d3669a92ae81cfb34cc5db607c374712a3d
parent eb936703
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -52904,6 +52904,7 @@ package android.webkit {
    method public abstract boolean onKeyMultiple(int, int, android.view.KeyEvent);
    method public abstract boolean onKeyUp(int, android.view.KeyEvent);
    method public abstract void onMeasure(int, int);
    method public default void onMovedToDisplay(int, android.content.res.Configuration);
    method public abstract void onOverScrolled(int, int, boolean, boolean);
    method public default void onProvideAutofillVirtualStructure(android.view.ViewStructure, int);
    method public abstract void onProvideVirtualStructure(android.view.ViewStructure);
+5 −0
Original line number Diff line number Diff line
@@ -2506,6 +2506,11 @@ public class WebView extends AbsoluteLayout
        super.onDetachedFromWindowInternal();
    }

    @Override
    public void onMovedToDisplay(int displayId, Configuration config) {
        mProvider.getViewDelegate().onMovedToDisplay(displayId, config);
    }

    @Override
    public void setLayoutParams(ViewGroup.LayoutParams params) {
        mProvider.getViewDelegate().setLayoutParams(params);
+2 −0
Original line number Diff line number Diff line
@@ -378,6 +378,8 @@ public interface WebViewProvider {

        public void onDetachedFromWindow();

        public default void onMovedToDisplay(int displayId, Configuration config) {}

        public void onVisibilityChanged(View changedView, int visibility);

        public void onWindowFocusChanged(boolean hasWindowFocus);