aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2017-08-03 10:01:10 -0700
committerScott Jackson <daneren2005@gmail.com>2017-08-03 10:01:10 -0700
commitea42d3c01caa05b3ff155d2e12e6f0fb35f2ed22 (patch)
tree2e1abdd2b7271e9c5218b6348aaaa2b4c9a7df68 /app/src/main/java
parentf863540f073fec131977d071605430b9770d57ae (diff)
downloaddsub-ea42d3c01caa05b3ff155d2e12e6f0fb35f2ed22.tar.gz
dsub-ea42d3c01caa05b3ff155d2e12e6f0fb35f2ed22.tar.bz2
dsub-ea42d3c01caa05b3ff155d2e12e6f0fb35f2ed22.zip
Fixes #769: Add offline support for opus files
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/github/daneren2005/dsub/util/FileUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java b/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
index 04dc73b7..02db5fa1 100644
--- a/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
+++ b/app/src/main/java/github/daneren2005/dsub/util/FileUtil.java
@@ -67,7 +67,7 @@ public class FileUtil {
private static final String TAG = FileUtil.class.getSimpleName();
private static final String[] FILE_SYSTEM_UNSAFE = {"/", "\\", "..", ":", "\"", "?", "*", "<", ">", "|"};
private static final String[] FILE_SYSTEM_UNSAFE_DIR = {"\\", "..", ":", "\"", "?", "*", "<", ">", "|"};
- private static final List<String> MUSIC_FILE_EXTENSIONS = Arrays.asList("mp3", "ogg", "aac", "flac", "m4a", "wav", "wma");
+ private static final List<String> MUSIC_FILE_EXTENSIONS = Arrays.asList("mp3", "ogg", "aac", "flac", "m4a", "wav", "wma", "opus");
private static final List<String> VIDEO_FILE_EXTENSIONS = Arrays.asList("flv", "mp4", "m4v", "wmv", "avi", "mov", "mpg", "mkv");
private static final List<String> PLAYLIST_FILE_EXTENSIONS = Arrays.asList("m3u");
private static final int MAX_FILENAME_LENGTH = 254 - ".complete.mp3".length();