fix: move modal countdown stops on touch; vacuum btn no longer triggers native settings

This commit is contained in:
dadaloop82
2026-05-14 12:22:45 +00:00
parent 1b7b271b43
commit 8bb6c01b7d
2 changed files with 25 additions and 0 deletions
@@ -492,6 +492,16 @@ class KioskActivity : AppCompatActivity() {
if (apkUrl.isBlank()) return
runOnUiThread { triggerApkDownload(apkUrl) }
}
/**
* Called by the webapp when a modal is shown / hidden so the native settings
* button does not intercept touches that belong to the HTML modal content.
*/
@JavascriptInterface
fun setNativeSettingsVisible(visible: Boolean) {
runOnUiThread {
btnSettings.visibility = if (visible) View.VISIBLE else View.GONE
}
}
}, "_kioskBridge")
val url = prefs.getString(KEY_URL, "http://evershelf.local") ?: "http://evershelf.local"