use of com.stardust.scriptdroid.model.script.ScriptFile in project Auto.js by hyb1996.
the class BuildActivity method setupViews.
@AfterViews
void setupViews() {
setToolbarAsBack(getString(R.string.text_build_apk));
String sourcePath = getIntent().getStringExtra(EXTRA_SOURCE_FILE);
if (sourcePath != null) {
setupWithSourceFile(new ScriptFile(sourcePath));
}
showPluginDownloadDialogIfNeeded();
}
use of com.stardust.scriptdroid.model.script.ScriptFile in project Auto.js by hyb1996.
the class TaskPrefEditActivity method initScriptListRecyclerView.
private void initScriptListRecyclerView() {
mStorageFileProvider = StorageFileProvider.getExternalStorageProvider();
ScriptListView scriptList = (ScriptListView) findViewById(R.id.script_list);
scriptList.setStorageFileProvider(mStorageFileProvider, new ScriptFile(StorageFileProvider.DEFAULT_DIRECTORY));
scriptList.setOnScriptFileClickListener((view, file) -> {
mSelectedScriptFilePath = file.getPath();
finish();
});
}
use of com.stardust.scriptdroid.model.script.ScriptFile in project Auto.js by hyb1996.
the class ScriptWidgetSettingsActivity method initScriptListRecyclerView.
private void initScriptListRecyclerView() {
mStorageFileProvider = StorageFileProvider.getExternalStorageProvider();
ScriptListView scriptList = (ScriptListView) findViewById(R.id.script_list);
scriptList.setStorageFileProvider(mStorageFileProvider);
scriptList.setCurrentDirectory(new ScriptFile(StorageFileProvider.DEFAULT_DIRECTORY));
scriptList.setOnScriptFileClickListener((view, file) -> {
mSelectedScriptFilePath = file.getPath();
finish();
});
}
Aggregations