diff --git a/android/app/src/main/java/com/ionicframework/fyle595781/MainActivity.java b/android/app/src/main/java/com/ionicframework/fyle595781/MainActivity.java index 9220bf0f3b..0df2659871 100644 --- a/android/app/src/main/java/com/ionicframework/fyle595781/MainActivity.java +++ b/android/app/src/main/java/com/ionicframework/fyle595781/MainActivity.java @@ -1,6 +1,17 @@ package com.ionicframework.fyle595781; import com.getcapacitor.BridgeActivity; +import android.os.Bundle; +import android.view.View; public class MainActivity extends BridgeActivity { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // Prevent tapjacking attacks (vapt) + View rootView = getWindow().getDecorView().getRootView(); + rootView.setFilterTouchesWhenObscured(true); + } }