Add the support for the new SystemInterface of android_npapi, expose
getApplicationDataDirectory to the plugin.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -154,4 +154,8 @@ public class PluginManager {
|
||||
}
|
||||
return directories.toArray(new String[directories.size()]);
|
||||
}
|
||||
|
||||
String getPluginSharedDataDirectory() {
|
||||
return mContext.getDir("plugins", 0).getPath();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user