@capacitor-community/text-to-speech 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -123,14 +123,7 @@ public class TextToSpeech implements android.speech.tts.TextToSpeech.OnInitListe
|
|
|
123
123
|
orderedVoices.add(supportedVoice);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
Collections.sort(
|
|
127
|
-
orderedVoices,
|
|
128
|
-
new Comparator<Voice>() {
|
|
129
|
-
public int compare(Voice v1, Voice v2) {
|
|
130
|
-
return v1.hashCode() - v2.hashCode();
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
);
|
|
126
|
+
Collections.sort(orderedVoices, Comparator.comparing(Voice::hashCode));
|
|
134
127
|
|
|
135
128
|
return orderedVoices;
|
|
136
129
|
}
|