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

Commit 10ca8088 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Try to not start up chromium when not needed

Also thread behaviour from static methods is not easily understood.

Change-Id: Icedeef70738f35891fa9562d717b119104756ba9
parent 80c1210e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -701,7 +701,7 @@ public class WebView extends AbsoluteLayout
     */
    @Deprecated
    public static void enablePlatformNotifications() {
        getFactory().getStatics().setPlatformNotificationsEnabled(true);
        // noop
    }

    /**
@@ -713,7 +713,7 @@ public class WebView extends AbsoluteLayout
     */
    @Deprecated
    public static void disablePlatformNotifications() {
        getFactory().getStatics().setPlatformNotificationsEnabled(false);
        // noop
    }

    /**
@@ -1610,6 +1610,8 @@ public class WebView extends AbsoluteLayout
     * @return the address, or if no address is found, null
     */
    public static String findAddress(String addr) {
        // TODO: Rewrite this in Java so it is not needed to start up chromium
        // Could also be deprecated
        return getFactory().getStatics().findAddress(addr);
    }