From 288f5575f5a8b13672a380b3316b788fed758137 Mon Sep 17 00:00:00 2001 From: yostyle Date: Tue, 14 Nov 2023 10:19:22 +0100 Subject: [PATCH] Enable screenshot for developer mode --- .../java/im/vector/app/features/settings/VectorPreferences.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt b/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt index ef3e791d91..ac11f6de2a 100755 --- a/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt +++ b/vector/src/main/java/im/vector/app/features/settings/VectorPreferences.kt @@ -993,8 +993,8 @@ class VectorPreferences @Inject constructor( * The user does not allow screenshots of the application. */ fun useFlagSecure(): Boolean { - // Tchap: Screenshot is allowed for Gplay Pre-prod and Dev versions only. - return BuildConfig.FLAVOR_store != "gplay" || BuildConfig.FLAVOR_target == "tchap" + // Tchap: Screenshot is allowed when developer mode is enabled or for Gplay Pre-prod and Dev versions only. + return (!developerMode() || BuildConfig.FLAVOR_store != "gplay" || BuildConfig.FLAVOR_target == "tchap") } /** Whether the keyboard should disable personalized learning. */