Skip to content
Snippets Groups Projects
Unverified Commit d5fd4baf authored by Hee Tatt Ooi's avatar Hee Tatt Ooi Committed by GitHub
Browse files

temporarily remove screenshot prevention (#322)


* temporarily remove screenshot prevention

* removed unused imports

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
parent 9b260517
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ import android.content.IntentFilter
import android.content.pm.ActivityInfo
import android.os.Bundle
import android.util.Log
import android.view.WindowManager
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
......@@ -92,10 +91,12 @@ class CoronaWarnApplication : Application(), LifecycleObserver,
@SuppressLint("SourceLockedOrientationActivity")
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) {
// prevents screenshot of the app for all activities
// TODO temporarily removed screenshot prevention for testing purposes
/*
activity.window.setFlags(
WindowManager.LayoutParams.FLAG_SECURE,
WindowManager.LayoutParams.FLAG_SECURE
)
)*/
// set screen orientation to portrait
activity.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment