Skip to content

Commit 827b654

Browse files
author
Peter E Conn
committed
🏡 Remove divider from Notifications Preferences page.
[email protected] (cherry picked from commit e8e90c2) Bug: 762033 Change-Id: I1f9bb01d495ff7b437fbc1e44c53172dffe997a4 Reviewed-on: https://chromium-review.googlesource.com/649531 Reviewed-by: Bernhard Bauer <[email protected]> Commit-Queue: Peter Conn <[email protected]> Cr-Original-Commit-Position: refs/heads/master@{#499639} Reviewed-on: https://chromium-review.googlesource.com/654661 Reviewed-by: Peter Conn <[email protected]> Cr-Commit-Position: refs/branch-heads/3202@{#62} Cr-Branched-From: fa6a5d8-refs/heads/master@{#499098}
1 parent 36561d3 commit 827b654

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

chrome/android/java/res/xml/notifications_preferences.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
Use of this source code is governed by a BSD-style license that can be
44
found in the LICENSE file. -->
55

6-
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
7-
xmlns:chrome="http://schemas.android.com/apk/res-auto" >
6+
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
87

98
<org.chromium.chrome.browser.preferences.ChromeSwitchPreference
109
android:key="content_suggestions"
1110
android:title="@string/notifications_content_suggestions_title"
12-
android:summary="@string/notifications_content_suggestions_summary"
13-
chrome:drawDivider="true" />
11+
android:summary="@string/notifications_content_suggestions_summary" />
1412

1513
<Preference
1614
android:fragment="org.chromium.chrome.browser.preferences.website.SingleCategoryPreferences"

chrome/android/java/src/org/chromium/chrome/browser/preferences/NotificationsPreferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void onCreate(Bundle savedInstanceState) {
3939

4040
mSnippetsBridge = new SnippetsBridge(Profile.getLastUsedProfile());
4141

42-
addPreferencesFromResource(R.xml.notifications_preferences);
42+
PreferenceUtils.addPreferencesFromResource(this, R.xml.notifications_preferences);
4343
getActivity().setTitle(R.string.prefs_notifications);
4444

4545
mSuggestionsPref = (ChromeSwitchPreference) findPreference(PREF_SUGGESTIONS);

0 commit comments

Comments
 (0)