Progress
This commit is contained in:
parent
43f2679374
commit
50cb0d6d9b
@ -6,12 +6,12 @@ plugins {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
namespace = "net.mezimmah.wkt9"
|
namespace = "net.mezimmah.wkt9"
|
||||||
compileSdk = 33
|
compileSdk = 34
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId = "net.mezimmah.wkt9"
|
applicationId = "net.mezimmah.wkt9"
|
||||||
minSdk = 31
|
minSdk = 30
|
||||||
targetSdk = 33
|
targetSdk = 34
|
||||||
versionCode = 1
|
versionCode = 1
|
||||||
versionName = "1.0"
|
versionName = "1.0"
|
||||||
|
|
||||||
|
@ -109,7 +109,9 @@ class WKT9: InputMethodService(), SpellCheckerSession.SpellCheckerSessionListene
|
|||||||
val inputMethodManager = getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager
|
val inputMethodManager = getSystemService(INPUT_METHOD_SERVICE) as InputMethodManager
|
||||||
val inputMethodSubtype = inputMethodManager.currentInputMethodSubtype
|
val inputMethodSubtype = inputMethodManager.currentInputMethodSubtype
|
||||||
|
|
||||||
locale = Locale.forLanguageTag(inputMethodSubtype.languageTag)
|
locale = inputMethodSubtype?.let {
|
||||||
|
Locale.forLanguageTag(it.languageTag)
|
||||||
|
} ?: Locale.forLanguageTag("en-US")
|
||||||
|
|
||||||
Log.d(tag, "WKT9 is loading: $locale")
|
Log.d(tag, "WKT9 is loading: $locale")
|
||||||
|
|
||||||
@ -353,7 +355,7 @@ class WKT9: InputMethodService(), SpellCheckerSession.SpellCheckerSessionListene
|
|||||||
lastComposedString = null
|
lastComposedString = null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (allowSuggestions) Log.d(tag, "History: ${commitHistory.toString()}")
|
if (allowSuggestions) Log.d(tag, "History: $commitHistory")
|
||||||
|
|
||||||
updateInputStatus()
|
updateInputStatus()
|
||||||
|
|
||||||
@ -525,6 +527,7 @@ class WKT9: InputMethodService(), SpellCheckerSession.SpellCheckerSessionListene
|
|||||||
handleComposeTimeout(this.timeout)
|
handleComposeTimeout(this.timeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
private fun onRecord() {
|
private fun onRecord() {
|
||||||
// The recorder must be busy...
|
// The recorder must be busy...
|
||||||
if (recorder !== null || !isInputViewShown) return
|
if (recorder !== null || !isInputViewShown) return
|
||||||
@ -539,7 +542,7 @@ class WKT9: InputMethodService(), SpellCheckerSession.SpellCheckerSessionListene
|
|||||||
val duration = Toast.LENGTH_SHORT
|
val duration = Toast.LENGTH_SHORT
|
||||||
|
|
||||||
// Instantiate recorder and start recording
|
// Instantiate recorder and start recording
|
||||||
recorder = MediaRecorder(this).also {
|
recorder = MediaRecorder().also {
|
||||||
recording = File.createTempFile("recording.3gp", null, cacheDir)
|
recording = File.createTempFile("recording.3gp", null, cacheDir)
|
||||||
|
|
||||||
it.setAudioSource(MediaRecorder.AudioSource.MIC)
|
it.setAudioSource(MediaRecorder.AudioSource.MIC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user