|
|
@ -98,7 +98,7 @@ class ContentView(context: Context) : FrameLayout(context) { |
|
|
|
|
|
|
|
|
|
|
|
fun upTime() { |
|
|
|
fun upTime() { |
|
|
|
if (ReadBookConfig.hideStatusBar) { |
|
|
|
if (ReadBookConfig.hideStatusBar) { |
|
|
|
tv_bottom_left.text = timeFormat.format(Date(System.currentTimeMillis())) |
|
|
|
tv_bottom_right.text = timeFormat.format(Date(System.currentTimeMillis())) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -126,13 +126,13 @@ class ContentView(context: Context) : FrameLayout(context) { |
|
|
|
2 -> ZhConvertBootstrap.newInstance().toTraditional(textPage.title) |
|
|
|
2 -> ZhConvertBootstrap.newInstance().toTraditional(textPage.title) |
|
|
|
else -> textPage.title |
|
|
|
else -> textPage.title |
|
|
|
} |
|
|
|
} |
|
|
|
val progress = "${index.plus(1)}/$pageSize $readProgress" |
|
|
|
|
|
|
|
if (ReadBookConfig.hideStatusBar) { |
|
|
|
if (ReadBookConfig.hideStatusBar) { |
|
|
|
tv_top_left.text = title |
|
|
|
tv_top_left.text = title |
|
|
|
tv_top_right.text = progress |
|
|
|
tv_top_right.text = readProgress |
|
|
|
|
|
|
|
tv_bottom_left.text = "${index.plus(1)}/$pageSize" |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
tv_bottom_left.text = title |
|
|
|
tv_bottom_left.text = title |
|
|
|
tv_bottom_right.text = progress |
|
|
|
tv_bottom_right.text = "${index.plus(1)}/$pageSize $readProgress" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|