fix no drc
This commit is contained in:
parent
74e3544526
commit
0e5d50d111
1 changed files with 4 additions and 7 deletions
|
|
@ -61,7 +61,7 @@ class FormatUtil(private var context: Context) {
|
|||
|
||||
val noDRC = sharedPreferences.getBoolean("no_prefer_drc_audio", false)
|
||||
if (noDRC) {
|
||||
formatImportance.add("no_drc")
|
||||
formatImportance.add(0,"no_drc")
|
||||
}
|
||||
|
||||
return formatImportance
|
||||
|
|
@ -155,13 +155,10 @@ class FormatUtil(private var context: Context) {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
"no_drc" -> {
|
||||
if (!a.format_note.contains("drc", false)) {
|
||||
0
|
||||
}else {
|
||||
-1
|
||||
}
|
||||
val aHasDrc = a.format_note.contains("drc", ignoreCase = true)
|
||||
val bHasDrc = b.format_note.contains("drc", ignoreCase = true)
|
||||
aHasDrc.compareTo(bHasDrc)
|
||||
}
|
||||
|
||||
else -> 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue