Skip to content

Commit

Permalink
Merge pull request #27822 from brave/pr27810_deep_update_onboarding_c…
Browse files Browse the repository at this point in the history
…ard_position_1.76.x

Change WDP card position before p3a (uplift to 1.76.x)
  • Loading branch information
kjozwiak authored Feb 26, 2025
2 parents 09d921a + 07f4948 commit 0f92e80
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@ private void nextOnboardingStep() {
} else {
nextOnboardingStep();
}
} else if (mCurrentStep == getAnalyticsConsentPageStep()) {
} else if (isWDPEnabled() && mCurrentStep == getWDPPageStep()) {
if (mIvBrave != null) {
mIvBrave.setVisibility(View.VISIBLE);
}
showAnalyticsConsentPage();
} else if (isWDPEnabled() && mCurrentStep == getWDPPageStep()) {
showWDPPage();
} else if (mCurrentStep == getAnalyticsConsentPageStep()) {
showAnalyticsConsentPage();
} else {
OnboardingPrefManager.getInstance().setP3aOnboardingShown(true);
OnboardingPrefManager.getInstance().setOnboardingSearchBoxTooltip(true);
Expand All @@ -312,11 +312,11 @@ private boolean isWDPEnabled() {
}

private int getAnalyticsConsentPageStep() {
return 1;
return 2;
}

private int getWDPPageStep() {
return 2;
return 1;
}

private void showBrowserSelectionPage() {
Expand Down

0 comments on commit 0f92e80

Please sign in to comment.