add: file chooser dialog

This commit is contained in:
hyb1996
2017-10-19 17:19:06 +08:00
parent 4b43434b25
commit 2b93091f5d
10 changed files with 526 additions and 43 deletions

View File

@@ -42,7 +42,11 @@ public class PFile extends File {
private void init() {
mSimplifiedName = PFiles.getNameWithoutExtension(getName());
if (isDirectory()) {
mSimplifiedName = getName();
} else {
mSimplifiedName = PFiles.getNameWithoutExtension(getName());
}
mSimplifyPath = getPath();
if (mSimplifyPath.startsWith(Environment.getExternalStorageDirectory().getPath())) {
mSimplifyPath = mSimplifyPath.substring(Environment.getExternalStorageDirectory().getPath().length());