mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -04:00
Merge pull request #680 from serpentspirale/fucking_file_picker
Small improvements to the file picker
This commit is contained in:
commit
4d51ad5c22
@ -113,7 +113,7 @@ public class FileListAdapter extends BaseAdapter {
|
||||
// If the item is not a directory, use the file icon
|
||||
int icon = file.isDirectory() ? ICON_FOLDER : ICON_FILE;
|
||||
view.setCompoundDrawablesWithIntrinsicBounds(icon, 0, 0, 0);
|
||||
|
||||
view.setCompoundDrawablePadding(20);
|
||||
return row;
|
||||
}
|
||||
|
||||
|
@ -119,6 +119,7 @@ public class FileListView extends LinearLayout
|
||||
if(fileSuffixes.length > 0){ //Meaning we want only specific files
|
||||
for(File file : listFile){
|
||||
if(file.isDirectory()){
|
||||
if((!file.getName().startsWith(".")) || file.getName().equals(".minecraft"))
|
||||
fileAdapter.add(file);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user