(Wallet) Add new configuration options to set default wallet (#21340)

Adds new two configuration options to set default Ethereum wallet and default Solana wallet. 

We only support Brave Wallet and None on Android. Brave Wallet is set as a default option.
Setting a default wallet to None will disable the DApp detection.
This commit is contained in:
Simone Arpe
2023-12-14 12:08:24 +01:00
committed by GitHub
parent ad226f9456
commit 74668ee2b8
6 changed files with 196 additions and 57 deletions
@@ -7,6 +7,18 @@
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" >
<org.chromium.chrome.browser.settings.BraveDialogPreference
android:key="default_ethereum_wallet"
android:title="@string/settings_default_ethereum_wallet_label"
app:dialog_entries="@array/settingsDefaultWalletTexts"
app:dialog_default_index="1"/>
<org.chromium.chrome.browser.settings.BraveDialogPreference
android:key="default_solana_wallet"
android:title="@string/settings_default_solana_wallet_label"
app:dialog_entries="@array/settingsDefaultWalletTexts"
app:dialog_default_index="1"/>
<org.chromium.chrome.browser.settings.BraveWalletAutoLockPreferences
android:key="pref_brave_wallet_autolock"
android:title="@string/brave_wallet_settings_autolock_option"