From f90ac44af8873ccb4b089683a4f4c966c8e833dd Mon Sep 17 00:00:00 2001 From: zoff99 Date: Sat, 11 Jan 2025 17:53:18 +0100 Subject: [PATCH] prevent avtivity from showing content in recent activity screen and prevent screenshots --- .../java/com/zoffcc/applications/trifa/ExportActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/ExportActivity.java b/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/ExportActivity.java index 3bd00ec9..58720234 100644 --- a/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/ExportActivity.java +++ b/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/ExportActivity.java @@ -38,6 +38,7 @@ import java.util.Iterator; import java.util.concurrent.ExecutionException; +import static com.zoffcc.applications.trifa.CallingActivity.initializeScreenshotSecurity; import static com.zoffcc.applications.trifa.HelperGeneric.display_toast; import static com.zoffcc.applications.trifa.HelperGeneric.io_file_copy; import static com.zoffcc.applications.trifa.MainActivity.DB_SHM_EXT; @@ -59,6 +60,9 @@ protected void onCreate(Bundle savedInstanceState) super.onCreate(savedInstanceState); setContentView(R.layout.activity_export); + // prevent screenshots and also dont show the window content in recent activity screen + initializeScreenshotSecurity(this); + TextView text_toxpass = findViewById(R.id.text_toxpass); TextView text_dbpass = findViewById(R.id.text_dbpass);