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

Commit fd055b2d authored by Grace Kloba's avatar Grace Kloba
Browse files

Add the support for the new SystemInterface of android_npapi, expose

getApplicationDataDirectory to the plugin.
parent baa7e3de
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -185,6 +185,13 @@ final class JWebCoreJavaBridge extends Handler {
        return PluginManager.getInstance(null).getPluginDirecoties();
    }

    /**
     * Returns the path of the plugin data directory
     */
    private String getPluginSharedDataDirectory() {
        return PluginManager.getInstance(null).getPluginSharedDataDirectory();
    }

    /**
     * setSharedTimer
     * @param timemillis The relative time when the timer should fire
+4 −0
Original line number Diff line number Diff line
@@ -154,4 +154,8 @@ public class PluginManager {
        }
        return directories.toArray(new String[directories.size()]);
    }

    String getPluginSharedDataDirectory() {
        return mContext.getDir("plugins", 0).getPath();
    }
}