This commit is contained in:
lunaticbum 2025-07-19 11:13:08 +09:00
parent b5ad079439
commit 2001be4424
2 changed files with 4 additions and 9 deletions

View File

@ -415,7 +415,7 @@ internal class LauncherActivity : CommonActivity() {
override fun dispatchTrackballEvent(event: MotionEvent?): Boolean { override fun dispatchTrackballEvent(event: MotionEvent?): Boolean {
Blog.LOGE("event >>> ${event?.device}") Blog.LOGE("event >>> ${event?.device}")
return super.dispatchTrackballEvent(event`) return super.dispatchTrackballEvent(event)
} }
@SuppressLint("RestrictedApi") @SuppressLint("RestrictedApi")
@ -747,11 +747,6 @@ internal class LauncherActivity : CommonActivity() {
currentFragment.doNextPage() currentFragment.doNextPage()
} }
} }
// if (binding.ho.isVisible) {
// finish()
// } else {
// finish()
// }
} }
}) })
} }

View File

@ -1147,7 +1147,7 @@ abstract class BaseToki : Fragment(), PagedTextViewInterface {
else if(lastedUrl?.contains("new",true) == true) {"webtoon"} else if(lastedUrl?.contains("new",true) == true) {"webtoon"}
else if(lastedUrl?.contains("mana",true) == true) {"comics"} else if(lastedUrl?.contains("mana",true) == true) {"comics"}
else "web" else "web"
copyToRealm(it) copyToRealm(it, UpdatePolicy.ALL)
this@BaseToki.lastInfo = it this@BaseToki.lastInfo = it
} }
} }
@ -1298,7 +1298,7 @@ abstract class BaseToki : Fragment(), PagedTextViewInterface {
} else if ((lastInfo._id?.length ?: 0) > 3){ } else if ((lastInfo._id?.length ?: 0) > 3){
realm.writeBlocking { realm.writeBlocking {
Blog.LOGE("lastInfo >>>> $lastInfo") Blog.LOGE("lastInfo >>>> $lastInfo")
copyToRealm(lastInfo) copyToRealm(lastInfo,UpdatePolicy.ALL)
} }
} }
// Blog.LOGD(log = "Successfully opened realm: ${realm.configuration.name}") // Blog.LOGD(log = "Successfully opened realm: ${realm.configuration.name}")
@ -1337,7 +1337,7 @@ abstract class BaseToki : Fragment(), PagedTextViewInterface {
else if(lastedUrl?.contains("mana",true) == true) {"comics"} else if(lastedUrl?.contains("mana",true) == true) {"comics"}
else "web" else "web"
it.contentsType = currentPage?.contentsType ?: it._id it.contentsType = currentPage?.contentsType ?: it._id
copyToRealm(it) copyToRealm(it,UpdatePolicy.ALL)
this@BaseToki.lastInfo = it this@BaseToki.lastInfo = it
} }
if (currentTitle.length > 0 && currentChapter > 0) { if (currentTitle.length > 0 && currentChapter > 0) {