...
This commit is contained in:
parent
634d703572
commit
53ba35a3de
@ -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) {
|
||||
Uri.parse(url).host?.let { host ->
|
||||
if (!hiddenLoader.contains(host)) {
|
||||
GeckoWeb(this).apply {
|
||||
hiddenLoader = this
|
||||
LunaticLauncher.mHourlyLogWriter?.writeLog("contentsLoad FIRST_LOAD$host")
|
||||
hiddenLoader.put(host,this)
|
||||
loadUrl(url)
|
||||
}
|
||||
} else {
|
||||
hiddenLoader?.loadUrl(url)
|
||||
hiddenLoader.get(host)?.loadUrl(url)
|
||||
LunaticLauncher.mHourlyLogWriter?.writeLog("contentsLoad RELOAD$host")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user