-
Notifications
You must be signed in to change notification settings - Fork 909
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
[Android] fix ntp background image aspect ratio #17186
Conversation
6c55f61
to
e7d4837
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.
lgtm
mWorkerTask = new FetchWallpaperWorkerTask( | ||
ntpImage, mDeviceWidth, mDeviceHeight, wallpaperRetrievedCallback); | ||
mWorkerTask = | ||
new FetchWallpaperWorkerTask(ntpImage, mBgImageView.getMeasuredWidth(), |
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.
@tapanmodh what's the reasoning here to use imageview size over the screen size ? is it related to top bar and bottom bar size ?
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.
yes, because of use of screen size, bottom parts of ntp image was getting cut. As per design instructions, we need to display full size of image's height in the ntp.
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.
Changes LGTM
Verification PASSED on
Image examples from
Image examples from
@deeppandya also went through the above using his
|
Resolves brave/brave-browser#28450
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 lint
,npm 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:
something that measures the "squareness" or the aspect ratio of something identifiable on one of the bg images.
Please double check private tabs are not affected