Prevent screen from viewed on task manager (cause it's ecchi :})

This commit is contained in:
tom5079
2019-05-12 22:55:03 +09:00
parent a71b80b153
commit 4ba7e269bb
3 changed files with 9 additions and 6 deletions

View File

@@ -25,12 +25,13 @@ class GalleryActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_gallery)
window.setFlags(
WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE)
setContentView(R.layout.activity_gallery)
galleryID = intent.getIntExtra("GALLERY_ID", 0)
CoroutineScope(Dispatchers.Unconfined).launch {
reader = async(Dispatchers.IO) {