修改默认语音

old
wangbinbin 5 years ago
parent 2dcbad56a1
commit 8b04753f6a
  1. 10
      app/src/main/java/com/novel/read/activity/NovelBookDetailActivity.kt
  2. 2
      app/src/main/java/com/novel/read/utlis/SpUtil.java
  3. 2
      app/src/main/java/com/novel/read/utlis/StringUtils.kt
  4. 1
      app/src/main/res/values-night/strings.xml
  5. 1
      app/src/main/res/values-zh-rTW-night/strings.xml
  6. 1
      app/src/main/res/values-zh-rTW/strings.xml
  7. 1
      app/src/main/res/values/strings.xml

@ -3,6 +3,7 @@ package com.novel.read.activity
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.app.ProgressDialog import android.app.ProgressDialog
import android.content.Intent import android.content.Intent
import android.util.Log
import android.view.View import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.LinearLayoutManager
import com.mango.mangolib.event.EventManager import com.mango.mangolib.event.EventManager
@ -39,8 +40,7 @@ class NovelBookDetailActivity : NovelBaseActivity(), View.OnClickListener {
private var mProgressDialog: ProgressDialog? = null private var mProgressDialog: ProgressDialog? = null
override val layoutId: Int override val layoutId: Int get() = R.layout.activity_book_detail
get() = R.layout.activity_book_detail
override fun initView() { override fun initView() {
mBookId = intent.getIntExtra(Constant.Bundle.BookId, 0) mBookId = intent.getIntExtra(Constant.Bundle.BookId, 0)
@ -120,7 +120,7 @@ class NovelBookDetailActivity : NovelBaseActivity(), View.OnClickListener {
if (mCollBookBean != null) { if (mCollBookBean != null) {
isCollected = true isCollected = true
tv_add_book.text = resources.getString(R.string.already_add) tv_add_book.text = resources.getString(R.string.already_add)
tv_start_read.text = "继续阅读" tv_start_read.text = resources.getString(R.string.go_read)
} else { } else {
mCollBookBean = event.result!!.collBookBean mCollBookBean = event.result!!.collBookBean
} }
@ -130,7 +130,7 @@ class NovelBookDetailActivity : NovelBaseActivity(), View.OnClickListener {
@Subscribe @Subscribe
fun getRecommendBook(event: GetRecommendBookEvent) { fun getRecommendBook(event: GetRecommendBookEvent) {
if (event.isFail) { if (event.isFail) {
Log.e("getRecommendBook", event.er?.msg)
} else { } else {
mList.clear() mList.clear()
mList.addAll(event.result!!.book) mList.addAll(event.result!!.book)
@ -202,7 +202,7 @@ class NovelBookDetailActivity : NovelBaseActivity(), View.OnClickListener {
if (isCollected) { if (isCollected) {
tv_add_book.text = resources.getString(R.string.already_add) tv_add_book.text = resources.getString(R.string.already_add)
tv_start_read.text = "继续阅读" tv_start_read.text = resources.getString(R.string.go_read)
} }
} }
} }

@ -100,7 +100,7 @@ public class SpUtil {
} }
public int getSelectLanguage() { public int getSelectLanguage() {
return getIntValue(TAG_LANGUAGE, 1); return getIntValue(TAG_LANGUAGE, 0);
} }
public Locale getSystemCurrentLocal() { public Locale getSystemCurrentLocal() {

@ -54,7 +54,7 @@ object StringUtils {
//繁簡轉換 //繁簡轉換
fun convertCC(input: String): String { fun convertCC(input: String): String {
val convertType = SpUtil.getIntValue(SHARED_READ_CONVERT_TYPE, 1) val convertType = SpUtil.getIntValue(SHARED_READ_CONVERT_TYPE, 0)
if (input.isEmpty()) if (input.isEmpty())
return "" return ""

@ -49,6 +49,7 @@
<string name="book_detail">图书详情</string> <string name="book_detail">图书详情</string>
<string name="lovely">猜你喜欢</string> <string name="lovely">猜你喜欢</string>
<string name="already_add">已加入</string> <string name="already_add">已加入</string>
<string name="go_read">继续阅读</string>
<string name="add_book">加入书架</string> <string name="add_book">加入书架</string>
<string name="start_read">开始阅读</string> <string name="start_read">开始阅读</string>
<string name="popularity">人气</string> <string name="popularity">人气</string>

@ -46,6 +46,7 @@
<string name="book_detail">圖書詳情</string> <string name="book_detail">圖書詳情</string>
<string name="lovely">猜妳喜歡</string> <string name="lovely">猜妳喜歡</string>
<string name="already_add">已加入</string> <string name="already_add">已加入</string>
<string name="go_read">继续閱讀</string>
<string name="add_book">加入書架</string> <string name="add_book">加入書架</string>
<string name="start_read">開始閱讀</string> <string name="start_read">開始閱讀</string>
<string name="popularity">人氣</string> <string name="popularity">人氣</string>

@ -46,6 +46,7 @@
<string name="book_detail">圖書詳情</string> <string name="book_detail">圖書詳情</string>
<string name="lovely">猜妳喜歡</string> <string name="lovely">猜妳喜歡</string>
<string name="already_add">已加入</string> <string name="already_add">已加入</string>
<string name="go_read">继续閱讀</string>
<string name="add_book">加入書架</string> <string name="add_book">加入書架</string>
<string name="start_read">開始閱讀</string> <string name="start_read">開始閱讀</string>
<string name="popularity">人氣</string> <string name="popularity">人氣</string>

@ -49,6 +49,7 @@
<string name="book_detail">图书详情</string> <string name="book_detail">图书详情</string>
<string name="lovely">猜你喜欢</string> <string name="lovely">猜你喜欢</string>
<string name="already_add">已加入</string> <string name="already_add">已加入</string>
<string name="go_read">继续阅读</string>
<string name="add_book">加入书架</string> <string name="add_book">加入书架</string>
<string name="start_read">开始阅读</string> <string name="start_read">开始阅读</string>
<string name="popularity">人气</string> <string name="popularity">人气</string>

Loading…
Cancel
Save