Skip to content
Snippets Groups Projects
Unverified Commit d76b59e5 authored by Falko Richter's avatar Falko Richter Committed by GitHub
Browse files

allow screenshots for all releases (#745)


* allow screenshots for all releases

* remove unused import

Co-authored-by: default avatarFalko Richter <falko@briefhansa.de>
Co-authored-by: default avatarFabian-K <fabian.kajzar@sap.com>
parent 1e889ffe
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ import android.content.Context
import android.content.IntentFilter
import android.content.pm.ActivityInfo
import android.os.Bundle
import android.view.WindowManager
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
......@@ -95,15 +94,6 @@ class CoronaWarnApplication : Application(), LifecycleObserver,
@SuppressLint("SourceLockedOrientationActivity")
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) {
// prevents screenshot of the app for all activities,
// except for deviceForTesters build flavor, which is used for testing
if (BuildConfig.FLAVOR != "deviceForTesters") {
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