优化 explorer view记住文件夹位置

修复 explorer view不能设置root和current的问题
This commit is contained in:
hyb1996
2018-11-06 10:50:34 +08:00
parent 67614b8016
commit f35825ccbd
4 changed files with 36 additions and 7 deletions

View File

@@ -119,6 +119,13 @@ public class Dialogs {
.showAndGet();
}
@ScriptInterface
public Object selectFile(String title, String prefill, Object callback) {
return ((BlockedMaterialDialog.Builder) dialogBuilder(callback)
.input(null, prefill, true)
.title(title))
.showAndGet();
}
private BlockedMaterialDialog.Builder dialogBuilder(Object callback) {
Context context = mRuntime.app.getCurrentActivity();