Fixes
This commit is contained in:
parent
3dbd18e867
commit
2fdb217e90
@ -46,7 +46,6 @@ import net.mezimmah.wkt9.voice.Whisper
|
|||||||
import okio.IOException
|
import okio.IOException
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import kotlin.math.floor
|
|
||||||
|
|
||||||
|
|
||||||
//val info = arrayOf(TextInfo("banan#", 0, 6, 0, 0))
|
//val info = arrayOf(TextInfo("banan#", 0, 6, 0, 0))
|
||||||
@ -467,18 +466,6 @@ class WKT9: InputMethodService(), SpellCheckerSession.SpellCheckerSessionListene
|
|||||||
return composing
|
return composing
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun normalize(
|
|
||||||
x: Float,
|
|
||||||
inMin: Float,
|
|
||||||
inMax: Float,
|
|
||||||
outMin: Float,
|
|
||||||
outMax: Float
|
|
||||||
): Float {
|
|
||||||
val outRange = outMax - outMin
|
|
||||||
val inRange = inMax - inMin
|
|
||||||
return (x - inMin) * outRange / inRange + outMin
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun onCandidates(candidates: List<String>, timeout: Int?) {
|
private fun onCandidates(candidates: List<String>, timeout: Int?) {
|
||||||
clearCandidates()
|
clearCandidates()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user