-
Notifications
You must be signed in to change notification settings - Fork 885
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 Load new content behaviour correctly #12852
Conversation
@@ -938,8 +926,6 @@ public void onClick(View v) { | |||
new SettingsLauncherImpl(); | |||
settingsLauncher.launchSettingsActivity( | |||
getContext(), BraveNewsPreferences.class); | |||
mParentScrollView.getViewTreeObserver() | |||
.removeOnGlobalLayoutListener(listener); |
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 yeah makes sense :)
- mParentScrollView | ||
.getMaxScrollAmount() | ||
+ dpToPx(getContext(), 90)); | ||
} | ||
} | ||
}, 300); |
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 did you try with 100 here?maybe it can work the same way a be a bit faster. wdyt?
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.
good idea. Let me try with 100 and see.
Verification PASSED on
Verified using the STR/Cases outlined via brave/brave-browser#21403 (comment). It's working a lot better on the phone but there's still some issues. Filed brave/brave-browser#22182 as a follow up. screen-20220408-003237.mp4 |
Verification FAILED on
Verified using the STR/Cases outlined via brave/brave-browser#21403 (comment). This still doesn't seem to be working. Rather than refreshing the Brave News feed and moving the user to the top of the feed, it looks like we're moving the user on the second card rather than at the top of the feed. Created tapping on Load new content takes users to second card in feed rather than at the beginning of feed #22183 - brave/brave-browser#22183 as a follow up. Example of this not working correctly on the tablet: XRecorder_08042022_011228.mp4 |
Resolves brave/brave-browser#21403
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
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: