File tree Expand file tree Collapse file tree 2 files changed +76
-97
lines changed
app/src/main/java/com/osfans/trime/ime/core Expand file tree Collapse file tree 2 files changed +76
-97
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ import android.speech.SpeechRecognizer
26
26
import androidx.annotation.StringRes
27
27
import com.blankj.utilcode.util.ToastUtils
28
28
import com.osfans.trime.R
29
- import com.osfans.trime.data.opencc.OpenCCDictManager.convertLine
30
- import com.osfans.trime.data.theme.Theme.Companion.get
29
+ import com.osfans.trime.data.opencc.OpenCCDictManager
30
+ import com.osfans.trime.data.theme.Theme
31
31
import timber.log.Timber
32
32
import java.util.Arrays
33
33
@@ -97,8 +97,8 @@ class Speech(context: Context) : RecognitionListener {
97
97
val trime = Trime .getServiceOrNull()
98
98
if (trime != null ) {
99
99
val matches = results.getStringArrayList(SpeechRecognizer .RESULTS_RECOGNITION )
100
- val openccConfig = get().style.getString(" speech_opencc_config" )
101
- for (result in matches!! ) trime.commitText(convertLine(result!! , openccConfig))
100
+ val openccConfig = Theme . get().style.getString(" speech_opencc_config" )
101
+ for (result in matches!! ) trime.commitText(OpenCCDictManager . convertLine(result!! , openccConfig))
102
102
}
103
103
}
104
104
You can’t perform that action at this time.
0 commit comments