/**
* Show the folder chooser when that button is clicked.
*/
private void onOpenFolderChooserClick() {
if (!Util.checkForStoragePermAndFireEventIfNeeded(R.id.action_choose_lib_dir)) return;
// Set up most of dialog.
FolderChooserDialog.Builder builder = new FolderChooserDialog.Builder(this)
.chooseButton(R.string.ok)
.cancelButton(R.string.cancel);
// Check to see if the current value is a valid folder.
String folderPath = Minerva.prefs().getLibDir(null);
if (folderPath != null && new File(folderPath).exists()) builder.initialPath(folderPath);
// Show the folder chooser dialog.
builder.show();
}
WelcomeActivity.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:Minerva
作者:
评论列表
文章目录