fixup! dolby: Use index of value for selecting ieq icon

This commit is contained in:
Adithya R
2025-06-06 18:27:07 +05:30
committed by pabloescobar-reborn
parent 4920046dbe
commit d40e763990

View File

@@ -34,10 +34,9 @@ class DolbyIeqPreference(
private fun getIeqIconResId(): Int =
when (findIndexOfValue(value)) {
0 -> R.drawable.ic_ieq_off
1 -> R.drawable.ic_ieq_balanced
2 -> R.drawable.ic_ieq_warm
3 -> R.drawable.ic_ieq_detailed
else -> 0 // should never hit this!
else -> R.drawable.ic_ieq_off
}
}