* [Android] Fixed containment at settings Resolves https://github.com/brave/brave-browser/issues/54164 * Fixed containment for the Homepage settings screen * Fixed containment for WebRTC policy screen * Fixed containment at Languages settings; modified SettingsUtils.getVisiblePreferences * Fixed privacy item * Fixed containment for NFT discovery learn more preference Replaced TextMessagePreference (BackgroundStyle.NONE, transparent) with ChromeBasePreference so the NFT description groups with the Enable NFT discovery toggle in one card. Follows the same camera OS-warning pattern: ForegroundColorSpan for the link color, setOnPreferenceClickListener for the tap action, matching Chromium upstream conventions. * Moved NFT discovery block before Reset wallet preference Enable NFT discovery toggle and its description now appear above "Reset and clear wallet data", matching the intended UX order. * Fixed containment for Brave Firewall + VPN settings Set initial visibility of server_change_location in onCreatePreferences to avoid animated removal artifact. Call notifyPreferencesUpdated() after dynamic visibility changes in updateSummaries so containment styles stay in sync with adapter positions. * Fixed containment for New Tab Page settings learn more Replaced ClickableSpansTextMessagePreference with ChromeBasePreference for the sponsored images learn more link so it groups into the Background Images card with the toggles above it. * Removed On/Off captions from New Tab Page switch prefs
20 lines
738 B
Plaintext
20 lines
738 B
Plaintext
# Copyright (c) 2026 The Brave Authors. All rights reserved.
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
# You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
android_library("java") {
|
|
sources = [
|
|
"java/src/org/chromium/components/browser_ui/settings/BraveSettingsUtils.java",
|
|
"widget/java/src/org/chromium/components/browser_ui/settings/brave_tricks/checkbox_to_switch/ChromeBaseCheckBoxPreference.java",
|
|
]
|
|
|
|
deps = [
|
|
"//build/android:build_java",
|
|
"//components/browser_ui/settings/android:java",
|
|
"//third_party/androidx:androidx_preference_preference_java",
|
|
]
|
|
}
|