folder detect
This commit is contained in:
parent
6ac1e7c7ab
commit
73f1cf5eb3
2 changed files with 4 additions and 1 deletions
|
@ -105,7 +105,10 @@ public class ObjectSelect extends AppCompatActivity {
|
||||||
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 (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(".oga") || Name.get(i).toString().endsWith(".mp3")
|
||||||
|| Name.get(i).toString().endsWith(".m4a") || Name.get(i).toString().endsWith(".flac")
|
|| Name.get(i).toString().endsWith(".m4a") || Name.get(i).toString().endsWith(".flac")
|
||||||
|| Name.get(i).toString().endsWith(".mka")) {
|
|| Name.get(i).toString().endsWith(".mka")) {
|
||||||
|
|
BIN
app/src/main/res/drawable/folder.png
Normal file
BIN
app/src/main/res/drawable/folder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue