diff --git a/app/src/main/kotlin/photos/network/MainActivity.kt b/app/src/main/kotlin/photos/network/MainActivity.kt index ed83fdc..5a1e0a6 100644 --- a/app/src/main/kotlin/photos/network/MainActivity.kt +++ b/app/src/main/kotlin/photos/network/MainActivity.kt @@ -53,7 +53,12 @@ class MainActivity : ComponentActivity() { WindowCompat.setDecorFitsSystemWindows(window, false) - window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE) + if (!BuildConfig.DEBUG) { + window.setFlags( + WindowManager.LayoutParams.FLAG_SECURE, + WindowManager.LayoutParams.FLAG_SECURE, + ) + } setContent { PhotosApp(