mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-10 05:03:26 +01:00
chore: disable showing monerochan by default
This commit is contained in:
parent
2260d2ee04
commit
5fd6ce2188
@ -220,7 +220,7 @@ class HomeFragment : Fragment(), TxInfoAdapterListener {
|
|||||||
view.findViewById<View>(R.id.no_history_layout).visibility =
|
view.findViewById<View>(R.id.no_history_layout).visibility =
|
||||||
if (display) View.VISIBLE else View.GONE
|
if (display) View.VISIBLE else View.GONE
|
||||||
val displayMonerochan =
|
val displayMonerochan =
|
||||||
PrefService.instance?.getBoolean(Constants.PREF_MONEROCHAN, true) == true
|
PrefService.instance?.getBoolean(Constants.PREF_MONEROCHAN, Constants.DEFAULT_PREF_MONEROCHAN) == true
|
||||||
if (displayMonerochan) {
|
if (displayMonerochan) {
|
||||||
botImageView.visibility = View.VISIBLE
|
botImageView.visibility = View.VISIBLE
|
||||||
mnrjTextView.visibility = View.VISIBLE
|
mnrjTextView.visibility = View.VISIBLE
|
||||||
|
@ -84,7 +84,6 @@ class OnboardingFragment : Fragment(), NodeSelectionDialogListener, AddNodeListe
|
|||||||
useBundledTor = view.findViewById(R.id.bundled_tor_checkbox)
|
useBundledTor = view.findViewById(R.id.bundled_tor_checkbox)
|
||||||
|
|
||||||
seedOffsetCheckbox?.isChecked = useOffset
|
seedOffsetCheckbox?.isChecked = useOffset
|
||||||
showXmrchanSwitch?.isChecked = true
|
|
||||||
val usingProxy = ProxyService.instance?.usingProxy == true
|
val usingProxy = ProxyService.instance?.usingProxy == true
|
||||||
val usingBundledTor = ProxyService.instance?.useBundledTor == true
|
val usingBundledTor = ProxyService.instance?.useBundledTor == true
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class OnboardingViewModel : ViewModel() {
|
|||||||
private val _passphrase = MutableLiveData("")
|
private val _passphrase = MutableLiveData("")
|
||||||
val passphrase: LiveData<String> = _passphrase
|
val passphrase: LiveData<String> = _passphrase
|
||||||
private val _confirmedPassphrase = MutableLiveData("")
|
private val _confirmedPassphrase = MutableLiveData("")
|
||||||
private val _showMonerochan = MutableLiveData(true)
|
private val _showMonerochan = MutableLiveData(Constants.DEFAULT_PREF_MONEROCHAN)
|
||||||
val showMonerochan: LiveData<Boolean> = _showMonerochan
|
val showMonerochan: LiveData<Boolean> = _showMonerochan
|
||||||
var showMoreOptions: LiveData<Boolean> = _showMoreOptions
|
var showMoreOptions: LiveData<Boolean> = _showMoreOptions
|
||||||
var seedType: LiveData<SeedType> = _seedType
|
var seedType: LiveData<SeedType> = _seedType
|
||||||
|
@ -87,7 +87,7 @@ class SettingsFragment : Fragment(), PasswordListener, NodeSelectionDialogListen
|
|||||||
streetModeSwitch?.isChecked =
|
streetModeSwitch?.isChecked =
|
||||||
PrefService.instance?.getBoolean(Constants.PREF_STREET_MODE, false) == true
|
PrefService.instance?.getBoolean(Constants.PREF_STREET_MODE, false) == true
|
||||||
monerochanSwitch?.isChecked =
|
monerochanSwitch?.isChecked =
|
||||||
PrefService.instance?.getBoolean(Constants.PREF_MONEROCHAN, true) == true
|
PrefService.instance?.getBoolean(Constants.PREF_MONEROCHAN, Constants.DEFAULT_PREF_MONEROCHAN) == true
|
||||||
donationSwitch?.isChecked =
|
donationSwitch?.isChecked =
|
||||||
PrefService.instance?.getBoolean(Constants.PREF_DONATE_PER_TX, false) == true
|
PrefService.instance?.getBoolean(Constants.PREF_DONATE_PER_TX, false) == true
|
||||||
useBundledTor?.isChecked = cachedUsingBundledTor
|
useBundledTor?.isChecked = cachedUsingBundledTor
|
||||||
|
@ -21,6 +21,8 @@ object Constants {
|
|||||||
const val NAV_ARG_TXINFO = "nav_arg_txinfo"
|
const val NAV_ARG_TXINFO = "nav_arg_txinfo"
|
||||||
const val STREET_MODE_BALANCE = "#.############"
|
const val STREET_MODE_BALANCE = "#.############"
|
||||||
|
|
||||||
|
const val DEFAULT_PREF_MONEROCHAN = false
|
||||||
|
|
||||||
val DONATION_ADDRESSES = arrayOf(
|
val DONATION_ADDRESSES = arrayOf(
|
||||||
"87BqQYkugEzh6Tuyotm2uc3DzJzKM6MuZaC161e6u1TsQxxPmXVPHpdNRyK47JY4d1hhbe25YVz4e9vTXCLDxvHkRXEAeBC", // primary Mysu Donation address
|
"87BqQYkugEzh6Tuyotm2uc3DzJzKM6MuZaC161e6u1TsQxxPmXVPHpdNRyK47JY4d1hhbe25YVz4e9vTXCLDxvHkRXEAeBC", // primary Mysu Donation address
|
||||||
"89QoPxs4cQSGbJrJddwzV3Ca7s2gVYHE1Xd1hGZafuVJVyNKt2LCQhxUdBF57PemxQiX3dmGUZLRRAzfeYyh9pq3GiWsDVo", // second Mysu Donation address
|
"89QoPxs4cQSGbJrJddwzV3Ca7s2gVYHE1Xd1hGZafuVJVyNKt2LCQhxUdBF57PemxQiX3dmGUZLRRAzfeYyh9pq3GiWsDVo", // second Mysu Donation address
|
||||||
|
Loading…
Reference in New Issue
Block a user