recognize m4a, ogg, wav files too
This commit is contained in:
parent
180bb87fb0
commit
5d67b5c458
4 changed files with 33 additions and 0 deletions
|
@ -771,8 +771,10 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
|
||||||
"jpg", "jpeg" -> R.drawable.ic_file_jpg
|
"jpg", "jpeg" -> R.drawable.ic_file_jpg
|
||||||
"js" -> R.drawable.ic_file_javascript
|
"js" -> R.drawable.ic_file_javascript
|
||||||
"json" -> R.drawable.ic_file_json
|
"json" -> R.drawable.ic_file_json
|
||||||
|
"m4a" -> R.drawable.ic_file_m4a
|
||||||
"mp3" -> R.drawable.ic_file_mp3
|
"mp3" -> R.drawable.ic_file_mp3
|
||||||
"mp4" -> R.drawable.ic_file_mp4
|
"mp4" -> R.drawable.ic_file_mp4
|
||||||
|
"ogg" -> R.drawable.ic_file_ogg
|
||||||
"pdf" -> R.drawable.ic_file_pdf
|
"pdf" -> R.drawable.ic_file_pdf
|
||||||
"plproj" -> R.drawable.ic_file_prelude
|
"plproj" -> R.drawable.ic_file_prelude
|
||||||
"prproj" -> R.drawable.ic_file_premiere
|
"prproj" -> R.drawable.ic_file_premiere
|
||||||
|
@ -782,6 +784,7 @@ class ItemsAdapter(activity: SimpleActivity, var listItems: MutableList<ListItem
|
||||||
"svg" -> R.drawable.ic_file_svg
|
"svg" -> R.drawable.ic_file_svg
|
||||||
"txt" -> R.drawable.ic_file_txt
|
"txt" -> R.drawable.ic_file_txt
|
||||||
"vcf" -> R.drawable.ic_file_vcf
|
"vcf" -> R.drawable.ic_file_vcf
|
||||||
|
"wav" -> R.drawable.ic_file_wav
|
||||||
"xls" -> R.drawable.ic_file_xls
|
"xls" -> R.drawable.ic_file_xls
|
||||||
"xml" -> R.drawable.ic_file_xml
|
"xml" -> R.drawable.ic_file_xml
|
||||||
"zip" -> R.drawable.ic_file_zip
|
"zip" -> R.drawable.ic_file_zip
|
||||||
|
|
10
app/src/main/res/drawable/ic_file_m4a.xml
Normal file
10
app/src/main/res/drawable/ic_file_m4a.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<vector android:height="24dp" android:viewportHeight="56"
|
||||||
|
android:viewportWidth="56" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="#e9e9e0" android:pathData="M36.985,0 L7.963,0C7.155,0 6.5,0.655 6.5,1.926L6.5,55c0,0.345 0.655,1 1.463,1l40.074,0c0.808,0 1.463,-0.655 1.463,-1l0,-42.022c0,-0.696 -0.093,-0.92 -0.257,-1.085L37.607,0.257C37.442,0.093 37.218,0 36.985,0Z"/>
|
||||||
|
<path android:fillColor="#d9d7ca" android:pathData="M37.5,12l11.849,0l-11.849,-11.849z"/>
|
||||||
|
<path android:fillColor="#64b5f6" android:pathData="M48.037,56 L7.963,56C7.155,56 6.5,55.345 6.5,54.537L6.5,39l43,0 0,15.537C49.5,55.345 48.845,56 48.037,56Z"/>
|
||||||
|
<path android:fillColor="#64b5f6" android:pathData="m26.6314,8.2953 l0,15.4849c-0.866,-0.499 -1.8641,-0.8073 -2.9355,-0.8073 -3.2438,0 -5.871,2.6273 -5.871,5.871 0,3.2437 2.6273,5.871 5.871,5.871 3.2438,0 5.871,-2.6273 5.871,-5.871l0,-14.6776 5.871,0 0,-5.871 -8.8066,0z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m33.2021,52.3485 l3.527,-10.063 1.627,0 3.501,10.063 -1.695,0 -0.725,-2.092 -3.787,0 -0.739,2.092 -1.709,0zM36.0321,49.1495 L39.0401,49.1495 37.5501,44.8015 36.0321,49.1495z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m29.3218,50.025 l-4.361,0 0,-1.298 4.361,-6.426 1.668,0 0,6.426 1.053,0 0,1.299 -1.053,0 0,2.351 -1.668,0 0,-2.352zM29.3218,48.727 L29.3218,44.215 26.4228,48.727 29.3218,48.727z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m21.7859,42.301 l1.668,0 0,10.076 -1.668,0 0,-6.932 -2.256,5.605 -1.449,0 -2.27,-5.605 0,6.932 -1.668,0 0,-10.076 1.668,0 2.994,6.891 2.981,-6.891z"/>
|
||||||
|
</vector>
|
10
app/src/main/res/drawable/ic_file_ogg.xml
Normal file
10
app/src/main/res/drawable/ic_file_ogg.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<vector android:height="24dp" android:viewportHeight="56"
|
||||||
|
android:viewportWidth="56" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="#e9e9e0" android:pathData="M36.985,0 L7.963,0C7.155,0 6.5,0.655 6.5,1.926L6.5,55c0,0.345 0.655,1 1.463,1l40.074,0c0.808,0 1.463,-0.655 1.463,-1l0,-42.022c0,-0.696 -0.093,-0.92 -0.257,-1.085L37.607,0.257C37.442,0.093 37.218,0 36.985,0Z"/>
|
||||||
|
<path android:fillColor="#d9d7ca" android:pathData="M37.5,12l11.849,0l-11.849,-11.849z"/>
|
||||||
|
<path android:fillColor="#4fc3f7" android:pathData="M48.037,56 L7.963,56C7.155,56 6.5,55.345 6.5,54.537L6.5,39l43,0 0,15.537C49.5,55.345 48.845,56 48.037,56Z"/>
|
||||||
|
<path android:fillColor="#4fc3f7" android:pathData="m26.6314,8.2953 l0,15.4849c-0.866,-0.499 -1.8641,-0.8073 -2.9355,-0.8073 -3.2438,0 -5.871,2.6273 -5.871,5.871 0,3.2437 2.6273,5.871 5.871,5.871 3.2438,0 5.871,-2.6273 5.871,-5.871l0,-14.6776 5.871,0 0,-5.871 -8.8066,0z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m41.6369,47.3921 l0,3.896c-0.21,0.265 -0.444,0.48 -0.704,0.649 -0.26,0.169 -0.533,0.308 -0.82,0.417 -0.287,0.109 -0.583,0.187 -0.889,0.232 -0.306,0.048 -0.608,0.07 -0.909,0.07 -0.602,0 -1.155,-0.109 -1.661,-0.328 -0.506,-0.219 -0.948,-0.542 -1.326,-0.971 -0.378,-0.429 -0.675,-0.966 -0.889,-1.613 -0.214,-0.647 -0.321,-1.395 -0.321,-2.242 0,-0.847 0.107,-1.593 0.321,-2.235 0.214,-0.643 0.51,-1.178 0.889,-1.606 0.378,-0.429 0.822,-0.754 1.333,-0.978 0.51,-0.224 1.062,-0.335 1.654,-0.335 0.547,0 1.057,0.091 1.531,0.273 0.474,0.183 0.897,0.456 1.271,0.82l-1.135,1.012c-0.219,-0.265 -0.47,-0.456 -0.752,-0.574 -0.283,-0.118 -0.574,-0.178 -0.875,-0.178 -0.337,0 -0.659,0.063 -0.964,0.191 -0.306,0.128 -0.579,0.344 -0.82,0.649 -0.242,0.306 -0.431,0.699 -0.567,1.183 -0.136,0.484 -0.21,1.075 -0.219,1.777 0.009,0.684 0.08,1.276 0.212,1.777 0.132,0.501 0.314,0.911 0.547,1.23 0.233,0.319 0.497,0.556 0.793,0.711 0.296,0.155 0.608,0.232 0.937,0.232 0.1,0 0.234,-0.007 0.403,-0.021 0.168,-0.014 0.337,-0.036 0.506,-0.068 0.168,-0.032 0.33,-0.075 0.485,-0.13 0.155,-0.055 0.269,-0.132 0.342,-0.232l0,-2.488 -1.709,0 0,-1.121 3.336,0z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m32.0831,47.382 l0,3.896c-0.21,0.265 -0.444,0.48 -0.704,0.649 -0.26,0.169 -0.533,0.308 -0.82,0.417 -0.287,0.109 -0.583,0.187 -0.889,0.232 -0.306,0.048 -0.608,0.07 -0.909,0.07 -0.602,0 -1.155,-0.109 -1.661,-0.328 -0.506,-0.219 -0.948,-0.542 -1.326,-0.971 -0.378,-0.429 -0.675,-0.966 -0.889,-1.613 -0.214,-0.647 -0.321,-1.395 -0.321,-2.242 0,-0.847 0.107,-1.593 0.321,-2.235 0.214,-0.643 0.51,-1.178 0.889,-1.606 0.378,-0.429 0.822,-0.754 1.333,-0.978 0.51,-0.224 1.062,-0.335 1.654,-0.335 0.547,0 1.057,0.091 1.531,0.273 0.474,0.183 0.897,0.456 1.271,0.82l-1.135,1.012c-0.219,-0.265 -0.47,-0.456 -0.752,-0.574 -0.283,-0.118 -0.574,-0.178 -0.875,-0.178 -0.337,0 -0.659,0.063 -0.964,0.191 -0.306,0.128 -0.579,0.344 -0.82,0.649 -0.242,0.306 -0.431,0.699 -0.567,1.183 -0.136,0.484 -0.21,1.075 -0.219,1.777 0.009,0.684 0.08,1.276 0.212,1.777 0.132,0.501 0.314,0.911 0.547,1.23 0.233,0.319 0.497,0.556 0.793,0.711 0.296,0.155 0.608,0.232 0.937,0.232 0.1,0 0.234,-0.007 0.403,-0.021 0.168,-0.014 0.337,-0.036 0.506,-0.068 0.168,-0.032 0.33,-0.075 0.485,-0.13 0.155,-0.055 0.269,-0.132 0.342,-0.232l0,-2.488 -1.709,0 0,-1.121 3.336,0z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m22.7571,47.5093c0,0.848 -0.107,1.595 -0.321,2.242 -0.214,0.647 -0.511,1.185 -0.889,1.613 -0.378,0.428 -0.82,0.752 -1.326,0.971 -0.506,0.219 -1.06,0.328 -1.661,0.328 -0.601,0 -1.155,-0.109 -1.661,-0.328 -0.506,-0.219 -0.948,-0.542 -1.326,-0.971 -0.378,-0.429 -0.675,-0.966 -0.889,-1.613 -0.214,-0.647 -0.321,-1.395 -0.321,-2.242 0,-0.847 0.107,-1.593 0.321,-2.235 0.214,-0.642 0.511,-1.178 0.889,-1.606 0.378,-0.428 0.82,-0.754 1.326,-0.978 0.506,-0.224 1.06,-0.335 1.661,-0.335 0.601,0 1.155,0.111 1.661,0.335 0.506,0.224 0.948,0.549 1.326,0.978 0.378,0.429 0.675,0.964 0.889,1.606 0.214,0.642 0.321,1.387 0.321,2.235zM18.5191,51.3243c0.337,0 0.658,-0.066 0.964,-0.198 0.306,-0.132 0.579,-0.349 0.82,-0.649 0.241,-0.3 0.431,-0.695 0.567,-1.183 0.136,-0.488 0.209,-1.082 0.219,-1.784 -0.01,-0.684 -0.08,-1.265 -0.212,-1.743 -0.132,-0.478 -0.314,-0.873 -0.547,-1.183 -0.233,-0.31 -0.497,-0.533 -0.793,-0.67 -0.296,-0.137 -0.608,-0.205 -0.937,-0.205 -0.338,0 -0.658,0.063 -0.964,0.191 -0.306,0.128 -0.579,0.344 -0.82,0.649 -0.241,0.305 -0.431,0.699 -0.567,1.183 -0.136,0.484 -0.21,1.075 -0.219,1.777 0.009,0.684 0.08,1.267 0.212,1.75 0.132,0.483 0.314,0.877 0.547,1.183 0.233,0.306 0.497,0.528 0.793,0.67 0.296,0.142 0.609,0.212 0.937,0.212z"/>
|
||||||
|
</vector>
|
10
app/src/main/res/drawable/ic_file_wav.xml
Normal file
10
app/src/main/res/drawable/ic_file_wav.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<vector android:height="24dp" android:viewportHeight="56"
|
||||||
|
android:viewportWidth="56" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<path android:fillColor="#e9e9e0" android:pathData="M36.985,0 L7.963,0C7.155,0 6.5,0.655 6.5,1.926L6.5,55c0,0.345 0.655,1 1.463,1l40.074,0c0.808,0 1.463,-0.655 1.463,-1l0,-42.022c0,-0.696 -0.093,-0.92 -0.257,-1.085L37.607,0.257C37.442,0.093 37.218,0 36.985,0Z"/>
|
||||||
|
<path android:fillColor="#d9d7ca" android:pathData="M37.5,12l11.849,0l-11.849,-11.849z"/>
|
||||||
|
<path android:fillColor="#5c6bc0" android:pathData="M48.037,56 L7.963,56C7.155,56 6.5,55.345 6.5,54.537L6.5,39l43,0 0,15.537C49.5,55.345 48.845,56 48.037,56Z"/>
|
||||||
|
<path android:fillColor="#5c6bc0" android:pathData="m26.6314,8.2953 l0,15.4849c-0.866,-0.499 -1.8641,-0.8073 -2.9355,-0.8073 -3.2438,0 -5.871,2.6273 -5.871,5.871 0,3.2437 2.6273,5.871 5.871,5.871 3.2438,0 5.871,-2.6273 5.871,-5.871l0,-14.6776 5.871,0 0,-5.871 -8.8066,0z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m25.4925,42.2515 l-2.721,10.131 -2.133,0 -1.654,-7.602 -1.764,7.602 -2.146,0 -2.557,-10.131 1.859,0 1.777,8.695 1.914,-8.695 1.859,0 1.777,8.695 1.928,-8.695 1.861,0z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m25.7935,52.3485 l3.527,-10.063 1.627,0 3.501,10.063 -1.695,0 -0.725,-2.092 -3.787,0 -0.739,2.092 -1.709,0zM28.6235,49.1495 L31.6315,49.1495 30.1415,44.8015 28.6235,49.1495z"/>
|
||||||
|
<path android:fillColor="#ffffff" android:pathData="m38.0685,52.3825 l-3.131,-10.131 1.873,0 2.338,8.695 2.475,-8.695 1.859,0 -3.281,10.131 -2.133,0z"/>
|
||||||
|
</vector>
|
Loading…
Reference in a new issue