Skip to content

Commit

Permalink
prevent avtivity from showing content in recent activity screen and p…
Browse files Browse the repository at this point in the history
…revent screenshots
  • Loading branch information
zoff99 committed Jan 11, 2025
1 parent 415b127 commit f90ac44
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit f90ac44

Please sign in to comment.