Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e21f57c3 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Use getParameter return value for the preset length" into main am: 2e758c40

parents 240ae0ad 2e758c40
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -153,9 +153,8 @@ public class Equalizer extends AudioEffect {
            param[0] = PARAM_GET_PRESET_NAME;
            for (int i = 0; i < mNumPresets; i++) {
                param[1] = i;
                checkStatus(getParameter(param, value));
                int length = 0;
                while (value[length] != 0) length++;
                final int length = getParameter(param, value);
                checkStatus(length);
                try {
                    mPresetNames[i] = new String(value, 0, length, "ISO-8859-1");
                } catch (java.io.UnsupportedEncodingException e) {