-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove lion animation onboarding #27239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strings
++
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
ace8e8b
to
3dde926
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some suggestions. My personal preference would be that you implement those that are not marked as "feel free to ignore". But they are all style preferences more than anything else. I'm unlocking so you can also merge as-is if you prefer.
* Activity that handles the first run onboarding experience for new Brave browser installations. | ||
* Extends FirstRunActivityBase to provide onboarding flows for: - Setting Brave as default browser | ||
* - Configuring privacy and analytics preferences (P3A and crash reporting) - Accepting terms of | ||
* service The activity guides users through a series of steps using animations and clear UI | ||
* elements to explain Brave's key features and privacy-focused approach. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Activity that handles the first run onboarding experience for new Brave browser installations. | |
* Extends FirstRunActivityBase to provide onboarding flows for: - Setting Brave as default browser | |
* - Configuring privacy and analytics preferences (P3A and crash reporting) - Accepting terms of | |
* service The activity guides users through a series of steps using animations and clear UI | |
* elements to explain Brave's key features and privacy-focused approach. | |
*/ | |
* Activity that handles the first run onboarding experience for new Brave browser installations. | |
* Extends FirstRunActivityBase to provide onboarding flows for: | |
* - Setting Brave as default browser | |
* - Configuring privacy and analytics preferences (P3A and crash reporting) | |
* - Accepting terms of service | |
* The activity guides users through a series of steps using animations and clear UI | |
* elements to explain Brave's key features and privacy-focused approach. | |
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mherrmann That's exactly what i had initially but presubmit fails with it so i had to update it. CI was failing with comment's formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. That's a pity :/
assert !mInitializeViewsDone; | ||
|
||
// Set the content view to the welcome onboarding layout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this comment superfluous and would remove it.
mIsTablet = DeviceFormFactor.isNonMultiDisplayContextOnTablet(this); | ||
|
||
// Initialize view references and setup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this comment superfluous and would remove it.
initViews(); | ||
|
||
// Setup click listeners for interactive elements |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove the comment and instead rename onClickViews
to setupClickListeners
.
if (mInvokePostWorkAtInitializeViews) { | ||
finishNativeInitializationPostWork(); | ||
} | ||
|
||
// Check install referral data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this comment superfluous and would remove it.
} | ||
// Final step: Complete onboarding | ||
else { | ||
// Set onboarding preferences |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove this comment because it says the same thing as the following method invocations.
OnboardingPrefManager.getInstance().setP3aOnboardingShown(true); | ||
OnboardingPrefManager.getInstance().setOnboardingSearchBoxTooltip(true); | ||
|
||
// Mark first run flow as complete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove this comment because it says the same thing as the following method invocation.
FirstRunStatus.setFirstRunFlowComplete(true); | ||
|
||
// Accept terms of service and EULA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove this comment because it says the same thing as the following method invocations.
UmaSessionStats.changeMetricsReportingConsent( | ||
true, ChangeMetricsReportingStateCalledFrom.UI_FIRST_RUN); | ||
// Mark crash reporting message as shown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove this comment because it says the same thing as the following method invocation.
boolean isCrashReporting = false; | ||
try { | ||
// Get current crash reporting permission status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove this comment because it says the same thing as the following method invocation.
Refactor the changes and add comments Improve formatting and comments
3dde926
to
fe7033f
Compare
Released in v1.76.21 |
Resolves brave/brave-browser#43116
Resolves brave/brave-browser#43290
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Recording for < android 10 devices
https://github.com/user-attachments/assets/d33fa716-1c97-4241-a8a6-9441a81c1d25
Recording for > android 9 devices
https://github.com/user-attachments/assets/fe69e799-6ae7-4fa7-9e78-7302b887f498