diff --git a/app/src/main/kotlin/bums/lunatic/launcher/LauncherActivity.kt b/app/src/main/kotlin/bums/lunatic/launcher/LauncherActivity.kt index ee8dd975..5edf0dd2 100644 --- a/app/src/main/kotlin/bums/lunatic/launcher/LauncherActivity.kt +++ b/app/src/main/kotlin/bums/lunatic/launcher/LauncherActivity.kt @@ -415,7 +415,7 @@ internal class LauncherActivity : CommonActivity() { override fun dispatchTrackballEvent(event: MotionEvent?): Boolean { Blog.LOGE("event >>> ${event?.device}") - return super.dispatchTrackballEvent(event`) + return super.dispatchTrackballEvent(event) } @SuppressLint("RestrictedApi") @@ -747,11 +747,6 @@ internal class LauncherActivity : CommonActivity() { currentFragment.doNextPage() } } -// if (binding.ho.isVisible) { -// finish() -// } else { -// finish() -// } } }) } diff --git a/app/src/main/kotlin/bums/lunatic/launcher/tokiz/BaseToki.kt b/app/src/main/kotlin/bums/lunatic/launcher/tokiz/BaseToki.kt index b39c8a87..6bba608d 100644 --- a/app/src/main/kotlin/bums/lunatic/launcher/tokiz/BaseToki.kt +++ b/app/src/main/kotlin/bums/lunatic/launcher/tokiz/BaseToki.kt @@ -1147,7 +1147,7 @@ abstract class BaseToki : Fragment(), PagedTextViewInterface { else if(lastedUrl?.contains("new",true) == true) {"webtoon"} else if(lastedUrl?.contains("mana",true) == true) {"comics"} else "web" - copyToRealm(it) + copyToRealm(it, UpdatePolicy.ALL) this@BaseToki.lastInfo = it } } @@ -1298,7 +1298,7 @@ abstract class BaseToki : Fragment(), PagedTextViewInterface { } else if ((lastInfo._id?.length ?: 0) > 3){ realm.writeBlocking { Blog.LOGE("lastInfo >>>> $lastInfo") - copyToRealm(lastInfo) + copyToRealm(lastInfo,UpdatePolicy.ALL) } } // 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 "web" it.contentsType = currentPage?.contentsType ?: it._id - copyToRealm(it) + copyToRealm(it,UpdatePolicy.ALL) this@BaseToki.lastInfo = it } if (currentTitle.length > 0 && currentChapter > 0) {