folder detect

This commit is contained in:
Page Asgardius 2022-09-03 16:35:28 -07:00
parent 6ac1e7c7ab
commit 73f1cf5eb3
2 changed files with 4 additions and 1 deletions

View file

@ -105,7 +105,10 @@ public class ObjectSelect extends AppCompatActivity {
int i = 0;
while(i<Name.size()) {
//Img.add(R.drawable.unknownfile);
if (Name.get(i).toString().endsWith(".opus") || Name.get(i).toString().endsWith(".ogg")
if (!Name.get(i).toString().contains((CharSequence) ".")) {
Img.add(R.drawable.folder);
}
else if (Name.get(i).toString().endsWith(".opus") || Name.get(i).toString().endsWith(".ogg")
|| Name.get(i).toString().endsWith(".oga") || Name.get(i).toString().endsWith(".mp3")
|| Name.get(i).toString().endsWith(".m4a") || Name.get(i).toString().endsWith(".flac")
|| Name.get(i).toString().endsWith(".mka")) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB