Skip to content

Commit

Permalink
refactor: do not call Rime.getInsance() during init
Browse files Browse the repository at this point in the history
  • Loading branch information
goofyz committed Dec 30, 2023
1 parent 5c1f7c4 commit 857edba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/com/osfans/trime/data/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import android.graphics.drawable.GradientDrawable
import androidx.core.math.MathUtils
import com.osfans.trime.core.Rime
import com.osfans.trime.data.AppPrefs
import com.osfans.trime.data.DataManager.sharedDataDir
import com.osfans.trime.data.DataManager.userDataDir
import com.osfans.trime.data.schema.SchemaManager
import com.osfans.trime.data.sound.SoundThemeManager
Expand Down Expand Up @@ -87,7 +86,6 @@ class Theme private constructor(isDarkMode: Boolean) {
init {
self = this
ThemeManager.init()
Rime.getInstance(!sharedDataDir.exists())
init(isDarkMode)
Timber.d("Setting sound from color ...")
SoundThemeManager.switchSound(colors.getString("sound"))
Expand Down

0 comments on commit 857edba

Please sign in to comment.