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

Commit 439266bb authored by Bo Liu's avatar Bo Liu
Browse files

webview: canInvokeDrawGlFunctor should always return true

Now that invokeDrawGlFunctor doesn't use the View anymore, and just
calls a static method on ViewRootImpl. In particular this is required
since invokeDrwaGlFunctor need to still function for views that already
detached.

BUG: 27709981
Change-Id: I2c8c8f4a6943f7eec773265ca709349c5ce0be54
parent e6be9c58
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -74,9 +74,7 @@ public final class WebViewDelegate {
     * and false otherwise.
     */
    public boolean canInvokeDrawGlFunctor(View containerView) {
        ViewRootImpl viewRootImpl = containerView.getViewRootImpl();
         // viewRootImpl can be null during teardown when window is leaked.
        return viewRootImpl != null;
        return true;
    }

    /**