Skip to content

Commit

Permalink
🏡 Remove divider from Notifications Preferences page.
Browse files Browse the repository at this point in the history
[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}
  • Loading branch information
Peter E Conn committed Sep 7, 2017
1 parent 36561d3 commit 827b654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions chrome/android/java/res/xml/notifications_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->

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

<org.chromium.chrome.browser.preferences.ChromeSwitchPreference
android:key="content_suggestions"
android:title="@string/notifications_content_suggestions_title"
android:summary="@string/notifications_content_suggestions_summary"
chrome:drawDivider="true" />
android:summary="@string/notifications_content_suggestions_summary" />

<Preference
android:fragment="org.chromium.chrome.browser.preferences.website.SingleCategoryPreferences"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void onCreate(Bundle savedInstanceState) {

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

addPreferencesFromResource(R.xml.notifications_preferences);
PreferenceUtils.addPreferencesFromResource(this, R.xml.notifications_preferences);
getActivity().setTitle(R.string.prefs_notifications);

mSuggestionsPref = (ChromeSwitchPreference) findPreference(PREF_SUGGESTIONS);
Expand Down

0 comments on commit 827b654

Please sign in to comment.