Merge pull request #680 from serpentspirale/fucking_file_picker

Small improvements to the file picker
This commit is contained in:
LegacyGamerHD 2021-01-22 20:06:42 +01:00 committed by GitHub
commit 4d51ad5c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
}