Reset scroll position for Brave overflow main menu when it's shown (#32323)

Resets the overflow main menu to the top every time is shown. Modifications are applied using bytecode manipulations as we needed to modify upstream class `AppMenuHandlerImpl`.
This commit is contained in:
Simone Arpe
2025-11-17 16:12:05 +01:00
committed by GitHub
parent 690938f72c
commit 315796e80c
7 changed files with 135 additions and 0 deletions
+11
View File
@@ -1066,6 +1066,17 @@
*** mShareButton;
}
-keep class org.chromium.chrome.browser.ui.appmenu.AppMenuHandlerImpl {
public <init>(...);
*** mAppMenu;
*** mAppMenuDragHelper;
*** showAppMenu(...);
}
-keep class org.chromium.chrome.browser.ui.appmenu.BraveAppMenuHandlerImpl {
public <init>(...);
}
-keep class org.chromium.chrome.browser.ui.AdaptiveToolbarUiCoordinator {
*** mContext;
*** mActivityTabProvider;