diff options
Diffstat (limited to 'android')
| -rw-r--r-- | android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/MainActivity.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/MainActivity.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/MainActivity.kt index c7a9be2ff9..2bfe5d5d9d 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/MainActivity.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/ui/MainActivity.kt @@ -65,6 +65,9 @@ class MainActivity : ComponentActivity() { setContent { AppTheme { MullvadApp() } } + // This is to protect against tapjacking attacks + window.decorView.filterTouchesWhenObscured = true + // We use lifecycleScope here to get less start service in background exceptions // Se this article for more information: // https://medium.com/@lepicekmichal/android-background-service-without-hiccup-501e4479110f |
