Skip to content

Commit 5833dba

Browse files
nopdanBambooin
authored andcommitted
chore: qualify import name
1 parent 520a10e commit 5833dba

File tree

2 files changed

+76
-97
lines changed

2 files changed

+76
-97
lines changed

app/src/main/java/com/osfans/trime/ime/core/Speech.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import android.speech.SpeechRecognizer
2626
import androidx.annotation.StringRes
2727
import com.blankj.utilcode.util.ToastUtils
2828
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
3131
import timber.log.Timber
3232
import java.util.Arrays
3333

@@ -97,8 +97,8 @@ class Speech(context: Context) : RecognitionListener {
9797
val trime = Trime.getServiceOrNull()
9898
if (trime != null) {
9999
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))
102102
}
103103
}
104104

0 commit comments

Comments
 (0)