pull/32/head
kunfei 5 years ago
parent 1789d04034
commit d2a8e5d9e7
  1. 3
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -47,7 +47,6 @@ import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Dispatchers.Main import kotlinx.coroutines.Dispatchers.Main
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import okhttp3.internal.toHexString
import org.jetbrains.anko.sdk27.listeners.onClick import org.jetbrains.anko.sdk27.listeners.onClick
import org.jetbrains.anko.startActivity import org.jetbrains.anko.startActivity
import org.jetbrains.anko.startActivityForResult import org.jetbrains.anko.startActivityForResult
@ -499,7 +498,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
postEvent(Bus.UP_CONFIG, false) postEvent(Bus.UP_CONFIG, false)
} }
BG_COLOR -> { BG_COLOR -> {
setBg(0, "#${color.toHexString()}") setBg(0, "#${color.hexString}")
ReadBookConfig.upBg() ReadBookConfig.upBg()
postEvent(Bus.UP_CONFIG, false) postEvent(Bus.UP_CONFIG, false)
} }

Loading…
Cancel
Save