...
This commit is contained in:
parent
634d703572
commit
53ba35a3de
@ -114,16 +114,20 @@ open class LauncherActivity : CommonActivity() {
|
|||||||
@JvmStatic var lActivity: LauncherActivity? = null
|
@JvmStatic var lActivity: LauncherActivity? = null
|
||||||
|
|
||||||
}
|
}
|
||||||
var hiddenLoader : GeckoWeb? = null
|
var hiddenLoader : HashMap<String,GeckoWeb> = hashMapOf()
|
||||||
fun contentsLoad(url : String){
|
fun contentsLoad(url : String){
|
||||||
if (isDestroyed == false && isFinishing == false) {
|
if (isDestroyed == false && isFinishing == false) {
|
||||||
if (hiddenLoader == null) {
|
Uri.parse(url).host?.let { host ->
|
||||||
GeckoWeb(this).apply {
|
if (!hiddenLoader.contains(host)) {
|
||||||
hiddenLoader = this
|
GeckoWeb(this).apply {
|
||||||
loadUrl(url)
|
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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user