WelcomeActivity.java 文件源码

java
阅读 37 收藏 0 点赞 0 评论 0

项目:Minerva 作者:
/**
 * 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();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号