|
|
@@ -49,6 +49,14 @@ public class PasswordListView<T extends Context & PasswordClickListener> extends
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
+ public boolean ShowParent() {
|
|
|
+ File current = new File(fCurrentDir);
|
|
|
+ if (new File(fRootPath).getAbsolutePath().equals(current.getAbsolutePath()))
|
|
|
+ return false;
|
|
|
+ DisplayDir(current.getParentFile());
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
protected PasswordView CreateView(final FileIdentity file) {
|
|
|
PasswordView pv = new PasswordView(getContext(), file.fIsDir ? ((file.isParent() ? PasswordView.TYPE_PARENT : 0) | PasswordView.TYPE_DIR) : PasswordView.TYPE_PASSWORD, file.fName);
|
|
|
pv.setOnClickListener(view -> {
|