From 9b56230adb566db99b9b6bab8fa4183cf66f213b Mon Sep 17 00:00:00 2001 From: Ho Cheung Date: Mon, 4 Sep 2023 20:56:29 +0800 Subject: [PATCH] [Android] Remove discovery module from NTP --- .../res/layout/new_tab_page_feed_v2_expandable_header.xml | 5 +++-- .../java/res/layout/new_tab_page_multi_feed_header.xml | 5 +++-- components/feed/core/shared_prefs/pref_names.cc | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/chrome/browser/feed/android/java/res/layout/new_tab_page_feed_v2_expandable_header.xml b/chrome/browser/feed/android/java/res/layout/new_tab_page_feed_v2_expandable_header.xml index ee1283cb9a6a0..c89b236330bf9 100644 --- a/chrome/browser/feed/android/java/res/layout/new_tab_page_feed_v2_expandable_header.xml +++ b/chrome/browser/feed/android/java/res/layout/new_tab_page_feed_v2_expandable_header.xml @@ -1,6 +1,6 @@ @@ -14,7 +14,8 @@ found in the LICENSE file. android:minHeight="@dimen/snippets_article_header_height" android:orientation="vertical" android:gravity="center_vertical" - android:layoutDirection="locale" > + android:layoutDirection="locale" + android:visibility="gone" > @@ -11,7 +11,8 @@ found in the LICENSE file. xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" > + android:orientation="vertical" + android:visibility="gone" > RegisterBooleanPref(kEnableSnippets, true); - registry->RegisterBooleanPref(kArticlesListVisible, true); + registry->RegisterBooleanPref(kArticlesListVisible, false); } } // namespace prefs -- 2.42.0.windows.1