File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
java/com/mrepol742/webappp Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : tools =" http://schemas.android.com/tools" >
44
5+ <uses-feature
6+ android : glEsVersion =" 0x00020000"
7+ android : required =" true" />
58 <uses-feature
69 android : name =" android.hardware.camera"
710 android : required =" false" />
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import com.mrepol742.webappp.ui.theme.WebApppTheme
2121import com.mrepol742.webappp.utils.DynamicShortcut
2222
2323class MainActivity : ComponentActivity () {
24- // private val allowedDomain = "melvinjonesrepol.com"
24+ private val allowedDomain = " melvinjonesrepol.com"
2525
2626 // Testing for GEO Location
2727 // private val allowedDomain = "browserleaks.com/geo"
@@ -30,7 +30,7 @@ class MainActivity : ComponentActivity() {
3030 // private val allowedDomain = "webrtc.github.io/samples/src/content/getusermedia/gum"
3131
3232 // Testing for Microphone
33- private val allowedDomain = " webrtc.github.io/samples/src/content/getusermedia/audio"
33+ // private val allowedDomain = "webrtc.github.io/samples/src/content/getusermedia/audio"
3434
3535 private var currentUrl: String = " https://$allowedDomain "
3636 private val shortcuts = listOf (
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ fun WebViewScreen(
8888 Log .d(" WebView" , " User Agent: $newUA " )
8989
9090 setLayerType(android.view.View .LAYER_TYPE_HARDWARE , null )
91+ setDownloadListener(DownloadListener (context))
9192
9293 webViewClient = SecureWebViewClient (context, allowedDomain)
9394
@@ -99,7 +100,6 @@ fun WebViewScreen(
99100 )
100101 webChromeClient = chromeClient
101102 secureWebChromeClientState.value = chromeClient
102- setDownloadListener(DownloadListener (context))
103103
104104 loadUrl(initialUrl)
105105 webViewState.value = this
You can’t perform that action at this time.
0 commit comments