From ffb6d94fcc4147066de826f98d4866840b350624 Mon Sep 17 00:00:00 2001 From: Carmelo Messina Date: Mon, 5 Jun 2023 20:48:48 +0200 Subject: [PATCH] Fix crash with list tab switcher --- build/patches/Move-navigation-bar-to-bottom.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/patches/Move-navigation-bar-to-bottom.patch b/build/patches/Move-navigation-bar-to-bottom.patch index 35b87a35..77ca848c 100644 --- a/build/patches/Move-navigation-bar-to-bottom.patch +++ b/build/patches/Move-navigation-bar-to-bottom.patch @@ -509,9 +509,9 @@ diff --git a/chrome/android/features/tab_ui/java/src/org/chromium/chrome/browser } registerLayoutChangeListener(); mRecyclerView.prepareTabSwitcherView(); -+ GridLayoutManager glm = (GridLayoutManager) mRecyclerView.getLayoutManager(); -+ if (glm instanceof GridLayoutManagerDockBottom) -+ ((GridLayoutManagerDockBottom)glm).ResetTopPosition(); ++ if (mRecyclerView.getLayoutManager() instanceof GridLayoutManagerDockBottom) { ++ ((GridLayoutManagerDockBottom)mRecyclerView.getLayoutManager()).ResetTopPosition(); ++ } mMediator.prepareTabSwitcherView(); mMediator.registerOnScrolledListener(mRecyclerView); } @@ -1617,7 +1617,7 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ui/system/Statu diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -7629,6 +7629,11 @@ const FeatureEntry kFeatureEntries[] = { +@@ -7633,6 +7633,11 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kWindowsScrollingPersonalityDescription, kOsAll, FEATURE_VALUE_TYPE(features::kWindowsScrollingPersonality)},