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

Commit 708b47d1 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

Fix bug 3511256 invalid TTS parameter cache size

The NB_CACHED_PARAMS is the number of cached parameters, not
 the size of the array for cached parameters.

Change-Id: I3d3053bbf247f3f89ae1ea07a931d33df7857a7c
parent e70c6607
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -414,8 +414,10 @@ public class TextToSpeech {

        /**
         * {@hide}
         * Total number of cached speech parameters.
         * This number should be equal to (max param position/2) + 1.
         */
        protected static final int NB_CACHED_PARAMS = 20;
        protected static final int NB_CACHED_PARAMS = 10;
    }

    /**