Skip to content

Commit 75e989c

Browse files
committed
feat: minor changes
1 parent a5bf912 commit 75e989c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
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" />

app/src/main/java/com/mrepol742/webappp/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import com.mrepol742.webappp.ui.theme.WebApppTheme
2121
import com.mrepol742.webappp.utils.DynamicShortcut
2222

2323
class 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(

app/src/main/java/com/mrepol742/webappp/WebViewScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)