Skip to content

Commit

Permalink
chore: qualify import name
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan authored and Bambooin committed Jan 30, 2024
1 parent 520a10e commit 5833dba
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 97 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/com/osfans/trime/ime/core/Speech.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import android.speech.SpeechRecognizer
import androidx.annotation.StringRes
import com.blankj.utilcode.util.ToastUtils
import com.osfans.trime.R
import com.osfans.trime.data.opencc.OpenCCDictManager.convertLine
import com.osfans.trime.data.theme.Theme.Companion.get
import com.osfans.trime.data.opencc.OpenCCDictManager
import com.osfans.trime.data.theme.Theme
import timber.log.Timber
import java.util.Arrays

Expand Down Expand Up @@ -97,8 +97,8 @@ class Speech(context: Context) : RecognitionListener {
val trime = Trime.getServiceOrNull()
if (trime != null) {
val matches = results.getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION)
val openccConfig = get().style.getString("speech_opencc_config")
for (result in matches!!) trime.commitText(convertLine(result!!, openccConfig))
val openccConfig = Theme.get().style.getString("speech_opencc_config")
for (result in matches!!) trime.commitText(OpenCCDictManager.convertLine(result!!, openccConfig))
}
}

Expand Down
Loading

0 comments on commit 5833dba

Please sign in to comment.