diff --git a/README.md b/README.md index ad3f0771ecfe39aab67d6f1ab393b5277f16eec2..e8730ef37fe44d0a60a315944c9591bea8c6b423 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ ...... } ``` -在sdk6,DevEco Studio2.2 beta1下项目可直接运行 如无法运行, +在sdk6,DevEco Studio 2.2 beta1下项目可直接运行 如无法运行, 删除项目.gradle,.idea,build,gradle,build.gradle文件, 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 diff --git a/entry/src/main/java/com/developer/filepicker/file/slice/MainAbilitySlice.java b/entry/src/main/java/com/developer/filepicker/file/slice/MainAbilitySlice.java index be93a8ab91e0b61ec0dc8463aa9be72eab435fef..961f26b9bfebc5b7ee29bcbcaab2c2775f425bff 100644 --- a/entry/src/main/java/com/developer/filepicker/file/slice/MainAbilitySlice.java +++ b/entry/src/main/java/com/developer/filepicker/file/slice/MainAbilitySlice.java @@ -1,3 +1,18 @@ +/* + * Copyright (C) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package com.developer.filepicker.file.slice; import com.developer.filepicker.file.FileListAdapter; @@ -30,6 +45,11 @@ import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; +/** MainAbilitySlice + * + * @author ljx + * @since 2021-07-012 + */ public class MainAbilitySlice extends AbilitySlice { private static final int CAPACITY = 1024; private static final int CONSTANT = -1; diff --git a/library/src/main/java/com/developer/filepicker/model/DialogConfigs.java b/library/src/main/java/com/developer/filepicker/model/DialogConfigs.java index 7837efe13af3521367356b349edddf718c876725..5f9f28664607969bb56f6b1114c088f632f2feb9 100644 --- a/library/src/main/java/com/developer/filepicker/model/DialogConfigs.java +++ b/library/src/main/java/com/developer/filepicker/model/DialogConfigs.java @@ -29,20 +29,4 @@ public abstract class DialogConfigs { * file_and_dir_select */ public static final int FILE_AND_DIR_SELECT = 2; - - /** - * parent_directory - */ - private static final String DIRECTORY_SEPARATOR = "/"; - - /** - * storage_dir - */ - private static final String STORAGE_DIR = "/storage/emulated/0/Android/data/com.developer.filepicker.file"; - - /** - * DEFAULT_DIR is the default mount point of the SDCARD. - * It is the default mount point. - */ - public static final String DEFAULT_DIR = DIRECTORY_SEPARATOR + STORAGE_DIR; } \ No newline at end of file