@24i/smartapps-bigscreen-rnv-build-engine 0.17.27-alpha.2790 → 0.17.27-alpha.2792
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,10 +11,6 @@ import android.text.TextWatcher
|
|
|
11
11
|
import android.util.Log
|
|
12
12
|
import android.view.KeyEvent
|
|
13
13
|
import android.view.View
|
|
14
|
-
import android.view.ViewTreeObserver
|
|
15
|
-
import android.webkit.WebView
|
|
16
|
-
import com.twentyfouri.tvbridge.R
|
|
17
|
-
import com.twentyfouri.tvbridge.webview.client.BridgeWebView
|
|
18
14
|
import android.view.View.MeasureSpec
|
|
19
15
|
import android.view.WindowManager
|
|
20
16
|
import android.view.inputmethod.InputMethodManager
|
|
@@ -82,15 +78,6 @@ class WebViewActivity : AppCompatActivity(), Mainview {
|
|
|
82
78
|
|
|
83
79
|
loadUrl(config.baseUrl)
|
|
84
80
|
|
|
85
|
-
val mainWebView = findViewById<WebView>(R.id.webview)
|
|
86
|
-
|
|
87
|
-
window.decorView.viewTreeObserver.addOnGlobalFocusChangeListener { oldFocus: View?, newFocus: View? ->
|
|
88
|
-
if (newFocus is WebView) {
|
|
89
|
-
Log.d("FocusDebug", "WebView získal focus, vracím zpět na hlavní view")
|
|
90
|
-
mainWebView.requestFocus()
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
81
|
initialized = true
|
|
95
82
|
}
|
|
96
83
|
|
|
@@ -243,7 +230,6 @@ class WebViewActivity : AppCompatActivity(), Mainview {
|
|
|
243
230
|
|
|
244
231
|
override fun loadUrl(url: String?) {
|
|
245
232
|
if (url.isNullOrEmpty()) return
|
|
246
|
-
|
|
247
233
|
binding.webview.visibility = View.VISIBLE
|
|
248
234
|
binding.webview.loadUrl(url)
|
|
249
235
|
if (url.startsWith("http")) {
|
|
@@ -256,4 +242,4 @@ class WebViewActivity : AppCompatActivity(), Mainview {
|
|
|
256
242
|
setCookiePolicy(CookiePolicy.ACCEPT_ALL)
|
|
257
243
|
}
|
|
258
244
|
}
|
|
259
|
-
}
|
|
245
|
+
}
|
package/package.json
CHANGED