Skip to content

Commit

Permalink
Use privacy policy v2 by default. (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas-Sander authored Apr 21, 2024
1 parent aa64fc0 commit 477597d
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions app/lib/legal/privacy_policy/privacy_policy_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,8 @@ class PrivacyPolicyPage extends StatelessWidget {
PrivacyPolicy? privacyPolicy,
PrivacyPolicyPageConfig? config,
this.showBackButton = true,
}) : privacyPolicy = privacyPolicy ?? v1PrivacyPolicy,
config = config ??
PrivacyPolicyPageConfig(
// When replacing the v1 privacy policy with the v2 this can be
// deleted.
//
// For v1 we purposefully have to set a threshold higher up in the
// page since the introdution section is so short that the second
// section is already highlighted as currently read when opening
// the page (since the second section title touches the
// threshold).
// With using this as the threshold the first section is
// highlighted as currently read instead of the second section
// when opening the page.
threshold: const CurrentlyReadThreshold(0.08),
),
}) : privacyPolicy = privacyPolicy ?? v2PrivacyPolicy,
config = config ?? PrivacyPolicyPageConfig(),
anchorController = AnchorController();

final PrivacyPolicy privacyPolicy;
Expand Down

0 comments on commit 477597d

Please sign in to comment.