This commit is contained in:
lunaticbum 2025-08-21 17:30:09 +09:00
parent 634d703572
commit 53ba35a3de

View File

@ -114,16 +114,20 @@ open class LauncherActivity : CommonActivity() {
@JvmStatic var lActivity: LauncherActivity? = null
}
var hiddenLoader : GeckoWeb? = null
var hiddenLoader : HashMap<String,GeckoWeb> = hashMapOf()
fun contentsLoad(url : String){
if (isDestroyed == false && isFinishing == false) {
if (hiddenLoader == null) {
GeckoWeb(this).apply {
hiddenLoader = this
loadUrl(url)
Uri.parse(url).host?.let { host ->
if (!hiddenLoader.contains(host)) {
GeckoWeb(this).apply {
LunaticLauncher.mHourlyLogWriter?.writeLog("contentsLoad FIRST_LOAD$host")
hiddenLoader.put(host,this)
loadUrl(url)
}
} else {
hiddenLoader.get(host)?.loadUrl(url)
LunaticLauncher.mHourlyLogWriter?.writeLog("contentsLoad RELOAD$host")
}
} else {
hiddenLoader?.loadUrl(url)
}
}
}