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

Commit 0611abd2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make the long-deprecated detachDrawGlFunctor a no-op." into main

parents 1490cab2 999c9eac
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -137,11 +137,15 @@ public final class WebViewDelegate {
     */
    @Deprecated
    public void detachDrawGlFunctor(View containerView, long nativeDrawGLFunctor) {
        if (Flags.mainlineApis()) {
            throw new UnsupportedOperationException();
        } else {
            ViewRootImpl viewRootImpl = containerView.getViewRootImpl();
            if (nativeDrawGLFunctor != 0 && viewRootImpl != null) {
                viewRootImpl.detachFunctor(nativeDrawGLFunctor);
            }
        }
    }

    /**
     * Returns the package id of the given {@code packageName}.