Make directory up navigation easier to understand
This commit is contained in:
parent
315c186db1
commit
ddc15413a3
2 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,7 @@ public class ExplorerActivity extends AppCompatActivity {
|
||||||
};
|
};
|
||||||
if (docsDir.getParentFile() != null && docsDir.getParentFile().canRead()) {
|
if (docsDir.getParentFile() != null && docsDir.getParentFile().canRead()) {
|
||||||
HashMap<String, Object> fileHashMap = new HashMap<>();
|
HashMap<String, Object> fileHashMap = new HashMap<>();
|
||||||
fileHashMap.put("name", "..");
|
fileHashMap.put("name", getString(R.string.directory_up));
|
||||||
fileHashMap.put("file", docsDir.getParentFile());
|
fileHashMap.put("file", docsDir.getParentFile());
|
||||||
|
|
||||||
dirs.add(fileHashMap);
|
dirs.add(fileHashMap);
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
<string name="value_explorer_view">File Explorer View</string>
|
<string name="value_explorer_view">File Explorer View</string>
|
||||||
<string name="pref_description_default_root">Default Root Directory</string>
|
<string name="pref_description_default_root">Default Root Directory</string>
|
||||||
<string name="action_select">Select</string>
|
<string name="action_select">Select</string>
|
||||||
|
<string name="directory_up">\u2191 Go up</string>
|
||||||
<string-array name="pref_entries_default_view">
|
<string-array name="pref_entries_default_view">
|
||||||
<item>@string/value_edit_view</item>
|
<item>@string/value_edit_view</item>
|
||||||
<item>@string/value_explorer_view</item>
|
<item>@string/value_explorer_view</item>
|
||||||
|
|
Loading…
Reference in a new issue