|
|
@ -111,6 +111,7 @@ public class FileUtil { |
|
|
|
if (TextUtils.isEmpty(path)) { |
|
|
|
if (TextUtils.isEmpty(path)) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
path = path.toLowerCase(); |
|
|
|
return path.endsWith(TYPE_MP3) |
|
|
|
return path.endsWith(TYPE_MP3) |
|
|
|
|| path.endsWith(TYPE_AAC) |
|
|
|
|| path.endsWith(TYPE_AAC) |
|
|
|
|| path.endsWith(TYPE_AMR) |
|
|
|
|| path.endsWith(TYPE_AMR) |
|
|
@ -126,6 +127,7 @@ public class FileUtil { |
|
|
|
if (TextUtils.isEmpty(path)) { |
|
|
|
if (TextUtils.isEmpty(path)) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
path = path.toLowerCase(); |
|
|
|
return path.endsWith(TYPE_MP4) |
|
|
|
return path.endsWith(TYPE_MP4) |
|
|
|
|| path.endsWith(TYPE_MKV) |
|
|
|
|| path.endsWith(TYPE_MKV) |
|
|
|
|| path.endsWith(TYPE_WEBM) |
|
|
|
|| path.endsWith(TYPE_WEBM) |
|
|
|