[cr146][Android] Make MonotonicObservableSupplier inherit Supplier<@Nullable T>

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/a5aa1f364aa75ce92d3d05c64c7d929303c8dc5f

	Android: Make MonotonicObservableSupplier inherit Supplier<@Nullable T>

	And fix all warnings that come with it.

	Bug: 467389696
	Cq-Include-Trybots: luci.chrome.try:android-internal-dbg,android-internal-binary-size
	Change-Id: I86becbc2f3c149941e3401fd726d7062a261bd7a
	Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7533558
This commit is contained in:
AlexeyBarabash
2026-02-26 14:14:52 +00:00
committed by Claudio DeSouza
parent 7ca4b5d5ba
commit 7813b87d2f
6 changed files with 14 additions and 13 deletions
@@ -48,7 +48,7 @@ public abstract class BraveTabSwitcherPaneBase extends TabSwitcherPaneBase {
@Override
public @NonNull HubLayoutAnimatorProvider createHideHubLayoutAnimatorProvider(
@NonNull HubContainerView hubContainerView) {
if (getTabSwitcherPaneCoordinatorSupplier().get() == null && getCurrentTab() != null) {
if (getTabSwitcherPaneCoordinator() == null && getCurrentTab() != null) {
// Force call TabSwitcherPaneBase.createTabSwitcherPaneCoordinator
// to ensure TabSwitcherPaneBase.mTabSwitcherPaneCoordinatorSupplier is set
super.createTabSwitcherPaneCoordinator();