...
This commit is contained in:
@@ -1222,7 +1222,7 @@ class TokiFragment : Fragment(), PagedTextViewInterface {
|
||||
throw RuntimeException(ex)
|
||||
}
|
||||
mPort?.postMessage(message)
|
||||
Blog.LOGD(log = "Successfully opened realm: ${realm.configuration.name}")
|
||||
// Blog.LOGD(log = "Successfully opened realm: ${realm.configuration.name}")
|
||||
}
|
||||
private fun sendViewerTouch(string: String) {
|
||||
val message: JSONObject = JSONObject()
|
||||
|
||||
@@ -288,18 +288,18 @@ class PagedTextLayout : ConstraintLayout , PagedTextGenerateInterface {
|
||||
|
||||
override fun onLayout(changed: Boolean, left: Int, top: Int, right: Int, bottom: Int) {
|
||||
super.onLayout(changed, left, top, right, bottom)
|
||||
Blog.LOGD(log = "onLayout>> ${this::class.java.name} changed >> ${changed}")
|
||||
// Blog.LOGD(log = "onLayout>> ${this::class.java.name} changed >> ${changed}")
|
||||
if(changed) {
|
||||
// forceUpdateUI()
|
||||
}
|
||||
}
|
||||
override fun onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int) {
|
||||
super.onSizeChanged(w, h, oldw, oldh)
|
||||
Blog.LOGD(log = "onSizeChanged>> ${this::class.java.name}")
|
||||
// Blog.LOGD(log = "onSizeChanged>> ${this::class.java.name}")
|
||||
if (w != oldw || oldh != h) {
|
||||
postDelayed(Runnable {
|
||||
layoutChange(w > (h * 0.7f))
|
||||
Blog.LOGD(log = "onSizeChanged>> ${w} ${h} ${h * 0.7}")
|
||||
// Blog.LOGD(log = "onSizeChanged>> ${w} ${h} ${h * 0.7}")
|
||||
},20)
|
||||
}else {
|
||||
|
||||
@@ -344,7 +344,7 @@ class PagedTextLayout : ConstraintLayout , PagedTextGenerateInterface {
|
||||
if (pageList.size > 0) {
|
||||
this@PagedTextLayout.currentPage = num
|
||||
var realPage = if (isDualPage()) this@PagedTextLayout.currentPage * 2 else this@PagedTextLayout.currentPage
|
||||
Blog.LOGE("realPage = if(${pageList?.size} ?: 0 > ${realPage}) { realPage} else { ${(pageList?.size ?: 0) - 1}}")
|
||||
// Blog.LOGE("realPage = if(${pageList?.size} ?: 0 > ${realPage}) { realPage} else { ${(pageList?.size ?: 0) - 1}}")
|
||||
realPage = if (pageList?.size ?: 0 > realPage) {
|
||||
realPage
|
||||
} else {
|
||||
@@ -353,7 +353,7 @@ class PagedTextLayout : ConstraintLayout , PagedTextGenerateInterface {
|
||||
currentPageTextView?.text = "${realPage + 1}/${pageList?.size ?: 0 + 1}"
|
||||
|
||||
mainTextView?.text = pageList?.get(realPage) ?: "NONE"
|
||||
Blog.LOGE("pageList.get($realPage) ${pageList?.get(realPage)}")
|
||||
// Blog.LOGE("pageList.get($realPage) ${pageList?.get(realPage)}")
|
||||
if (isDualPage()) {
|
||||
realPage = realPage.inc()
|
||||
sencondTextView?.text = if (pageList?.size ?: 0 > realPage) {
|
||||
|
||||
Reference in New Issue
Block a user