@24i/smartapps-bigscreen-rnv-build-engine 0.17.27-alpha.2785 → 0.17.27-alpha.2786

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,6 +11,10 @@ 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
14
18
  import android.view.View.MeasureSpec
15
19
  import android.view.WindowManager
16
20
  import android.view.inputmethod.InputMethodManager
@@ -78,6 +82,15 @@ class WebViewActivity : AppCompatActivity(), Mainview {
78
82
 
79
83
  loadUrl(config.baseUrl)
80
84
 
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
+
81
94
  initialized = true
82
95
  }
83
96
 
@@ -230,6 +243,7 @@ class WebViewActivity : AppCompatActivity(), Mainview {
230
243
 
231
244
  override fun loadUrl(url: String?) {
232
245
  if (url.isNullOrEmpty()) return
246
+
233
247
  binding.webview.visibility = View.VISIBLE
234
248
  binding.webview.loadUrl(url)
235
249
  if (url.startsWith("http")) {
@@ -242,4 +256,4 @@ class WebViewActivity : AppCompatActivity(), Mainview {
242
256
  setCookiePolicy(CookiePolicy.ACCEPT_ALL)
243
257
  }
244
258
  }
245
- }
259
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@24i/smartapps-bigscreen-rnv-build-engine",
3
- "version": "0.17.27-alpha.2785",
3
+ "version": "0.17.27-alpha.2786",
4
4
  "description": "Package with build engine for SmartApps BIGscreen projects...",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {