Skip to content

Commit

Permalink
Enable screenshot for developer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Nov 24, 2023
1 parent 84cfc4c commit 288f557
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 288f557

Please sign in to comment.