2024-10-14 04:20:23 -03:00
|
|
|
From 45e172ad614f38a3ce759d2164a0c57d56f39e58 Mon Sep 17 00:00:00 2001
|
2023-10-10 23:31:46 -03:00
|
|
|
From: Ho Cheung
|
2024-10-14 04:20:23 -03:00
|
|
|
Date: Mon, 14 Oct 2024 15:18:21 +0800
|
|
|
|
Subject: [PATCH] [Android] Remove-discovery-module-from-NTP
|
2023-10-10 23:26:56 -03:00
|
|
|
|
|
|
|
---
|
|
|
|
.../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(-)
|
|
|
|
|
2023-06-27 15:03:14 -04:00
|
|
|
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
|
2024-10-14 04:20:23 -03:00
|
|
|
index 93a3d036f9c49..942100187320b 100644
|
2023-06-27 15:03:14 -04:00
|
|
|
--- 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
|
2023-09-04 10:15:35 -03:00
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
-Copyright 2020 The Chromium Authors
|
2024-02-18 03:40:38 -03:00
|
|
|
+Copyright 2024 The Chromium Authors, Alex313031 and gz83
|
2023-09-04 10:15:35 -03:00
|
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
|
|
found in the LICENSE file.
|
|
|
|
-->
|
2023-06-27 15:03:14 -04:00
|
|
|
@@ -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" >
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
tools:ignore="RelativeOverlap"
|
|
|
|
diff --git a/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml b/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml
|
2024-10-14 04:20:23 -03:00
|
|
|
index dfa33369d2db4..3246e8689ded7 100644
|
2023-06-27 15:03:14 -04:00
|
|
|
--- a/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml
|
|
|
|
+++ b/chrome/browser/feed/android/java/res/layout/new_tab_page_multi_feed_header.xml
|
2023-09-04 10:15:35 -03:00
|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
-Copyright 2021 The Chromium Authors
|
2024-02-18 03:40:38 -03:00
|
|
|
+Copyright 2024 The Chromium Authors, Alex313031 and gz83
|
2023-09-04 10:15:35 -03:00
|
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
|
|
found in the LICENSE file.
|
|
|
|
-->
|
2023-06-27 15:03:14 -04:00
|
|
|
@@ -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" >
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/main_content"
|
|
|
|
diff --git a/components/feed/core/shared_prefs/pref_names.cc b/components/feed/core/shared_prefs/pref_names.cc
|
2024-08-10 02:21:01 -04:00
|
|
|
index 50f880e715489..ce7c2695ab09f 100644
|
2023-06-27 15:03:14 -04:00
|
|
|
--- a/components/feed/core/shared_prefs/pref_names.cc
|
|
|
|
+++ b/components/feed/core/shared_prefs/pref_names.cc
|
2023-09-04 10:15:35 -03:00
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-// Copyright 2020 The Chromium Authors
|
2024-02-18 03:40:38 -03:00
|
|
|
+// Copyright 2024 The Chromium Authors, Alex313031 and gz83
|
2023-09-04 10:15:35 -03:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2024-01-06 06:58:34 -03:00
|
|
|
@@ -25,7 +25,7 @@ const char kEnableSnippetsByDse[] = "ntp_snippets_by_dse.enable";
|
2023-06-27 15:03:14 -04:00
|
|
|
|
|
|
|
void RegisterFeedSharedProfilePrefs(PrefRegistrySimple* registry) {
|
|
|
|
registry->RegisterBooleanPref(kEnableSnippets, true);
|
|
|
|
- registry->RegisterBooleanPref(kArticlesListVisible, true);
|
|
|
|
+ registry->RegisterBooleanPref(kArticlesListVisible, false);
|
2024-01-06 06:58:34 -03:00
|
|
|
registry->RegisterBooleanPref(kEnableSnippetsByDse, true);
|
2023-06-27 15:03:14 -04:00
|
|
|
}
|
|
|
|
|
2024-01-06 06:58:34 -03:00
|
|
|
--
|
2024-10-14 04:20:23 -03:00
|
|
|
2.43.0
|
2024-01-06 06:58:34 -03:00
|
|
|
|