chore: disable showing monerochan by default

This commit is contained in:
- 2024-09-14 14:44:25 +02:00
parent 2260d2ee04
commit 5fd6ce2188
5 changed files with 5 additions and 4 deletions

View File

@ -220,7 +220,7 @@ class HomeFragment : Fragment(), TxInfoAdapterListener {
view.findViewById<View>(R.id.no_history_layout).visibility =
if (display) View.VISIBLE else View.GONE
val displayMonerochan =
PrefService.instance?.getBoolean(Constants.PREF_MONEROCHAN, true) == true
PrefService.instance?.getBoolean(Constants.PREF_MONEROCHAN, Constants.DEFAULT_PREF_MONEROCHAN) == true
if (displayMonerochan) {
botImageView.visibility = View.VISIBLE
mnrjTextView.visibility = View.VISIBLE

View File

@ -84,7 +84,6 @@ class OnboardingFragment : Fragment(), NodeSelectionDialogListener, AddNodeListe
useBundledTor = view.findViewById(R.id.bundled_tor_checkbox)
seedOffsetCheckbox?.isChecked = useOffset
showXmrchanSwitch?.isChecked = true
val usingProxy = ProxyService.instance?.usingProxy == true
val usingBundledTor = ProxyService.instance?.useBundledTor == true

View File

@ -31,7 +31,7 @@ class OnboardingViewModel : ViewModel() {
private val _passphrase = MutableLiveData("")
val passphrase: LiveData<String> = _passphrase
private val _confirmedPassphrase = MutableLiveData("")
private val _showMonerochan = MutableLiveData(true)
private val _showMonerochan = MutableLiveData(Constants.DEFAULT_PREF_MONEROCHAN)
val showMonerochan: LiveData<Boolean> = _showMonerochan
var showMoreOptions: LiveData<Boolean> = _showMoreOptions
var seedType: LiveData<SeedType> = _seedType

View File

@ -87,7 +87,7 @@ class SettingsFragment : Fragment(), PasswordListener, NodeSelectionDialogListen
streetModeSwitch?.isChecked =
PrefService.instance?.getBoolean(Constants.PREF_STREET_MODE, false) == true
monerochanSwitch?.isChecked =
PrefService.instance?.getBoolean(Constants.PREF_MONEROCHAN, true) == true
PrefService.instance?.getBoolean(Constants.PREF_MONEROCHAN, Constants.DEFAULT_PREF_MONEROCHAN) == true
donationSwitch?.isChecked =
PrefService.instance?.getBoolean(Constants.PREF_DONATE_PER_TX, false) == true
useBundledTor?.isChecked = cachedUsingBundledTor

View File

@ -21,6 +21,8 @@ object Constants {
const val NAV_ARG_TXINFO = "nav_arg_txinfo"
const val STREET_MODE_BALANCE = "#.############"
const val DEFAULT_PREF_MONEROCHAN = false
val DONATION_ADDRESSES = arrayOf(
"87BqQYkugEzh6Tuyotm2uc3DzJzKM6MuZaC161e6u1TsQxxPmXVPHpdNRyK47JY4d1hhbe25YVz4e9vTXCLDxvHkRXEAeBC", // primary Mysu Donation address
"89QoPxs4cQSGbJrJddwzV3Ca7s2gVYHE1Xd1hGZafuVJVyNKt2LCQhxUdBF57PemxQiX3dmGUZLRRAzfeYyh9pq3GiWsDVo", // second Mysu Donation address