Skip to content

Commit f90ac44

Browse files
committed
prevent avtivity from showing content in recent activity screen and prevent screenshots
1 parent 415b127 commit f90ac44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/ExportActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import java.util.Iterator;
3939
import java.util.concurrent.ExecutionException;
4040

41+
import static com.zoffcc.applications.trifa.CallingActivity.initializeScreenshotSecurity;
4142
import static com.zoffcc.applications.trifa.HelperGeneric.display_toast;
4243
import static com.zoffcc.applications.trifa.HelperGeneric.io_file_copy;
4344
import static com.zoffcc.applications.trifa.MainActivity.DB_SHM_EXT;
@@ -59,6 +60,9 @@ protected void onCreate(Bundle savedInstanceState)
5960
super.onCreate(savedInstanceState);
6061
setContentView(R.layout.activity_export);
6162

63+
// prevent screenshots and also dont show the window content in recent activity screen
64+
initializeScreenshotSecurity(this);
65+
6266
TextView text_toxpass = findViewById(R.id.text_toxpass);
6367
TextView text_dbpass = findViewById(R.id.text_dbpass);
6468

0 commit comments

Comments
 (0)