file icons working again

This commit is contained in:
Page Asgardius 2022-09-03 11:37:35 -07:00
parent 0674537f39
commit 58151024f1

View file

@ -87,26 +87,26 @@ public class ObjectSelect extends AppCompatActivity {
} }
Name = new ArrayList<String>(object); Name = new ArrayList<String>(object);
object.clear();
//Img.add(R.drawable.unknownfile); //Img.add(R.drawable.unknownfile);
int i = 0; int i = 0;
while(i<Name.size()) { while(i<Name.size()) {
Img.add(R.drawable.unknownfile); //Img.add(R.drawable.unknownfile);
/*if (os.getKey().endsWith(".opus") || os.getKey().endsWith(".ogg") if (Name.get(i).toString().endsWith(".opus") || Name.get(i).toString().endsWith(".ogg")
|| os.getKey().endsWith(".oga") || os.getKey().endsWith(".mp3") || Name.get(i).toString().endsWith(".oga") || Name.get(i).toString().endsWith(".mp3")
|| os.getKey().endsWith(".m4a") || os.getKey().endsWith(".flac") || Name.get(i).toString().endsWith(".m4a") || Name.get(i).toString().endsWith(".flac")
|| os.getKey().endsWith(".mka")) { || Name.get(i).toString().endsWith(".mka")) {
Img.add(R.drawable.audiofile); Img.add(R.drawable.audiofile);
} }
else if(os.getKey().endsWith(".mp4") || os.getKey().endsWith(".mkv") else if(Name.get(i).toString().endsWith(".mp4") || Name.get(i).toString().endsWith(".mkv")
|| os.getKey().endsWith(".webm") || os.getKey().endsWith(".m4v")) { || Name.get(i).toString().endsWith(".webm") || Name.get(i).toString().endsWith(".m4v")) {
Img.add(R.drawable.videofile); Img.add(R.drawable.videofile);
} }
else { else {
Img.add(R.drawable.unknownfile); Img.add(R.drawable.unknownfile);
}*/ }
i++; i++;
} }
object.clear();
/*for (Bucket bucket : buckets) { /*for (Bucket bucket : buckets) {
//i++; //i++;