forked from shihaam/thijooree
1.4 KiB
1.4 KiB
Settings — About
App version, terms-of-service links per bank, and optional donate buttons.
Fragment — SettingsAboutFragment
File: ui/home/SettingsAboutFragment.kt. Bound to layout FragmentSettingsAboutBinding.
Header
| View | Source |
|---|---|
tvAppName |
R.string.app_name |
tvVersion |
R.string.about_version formatted with BuildConfig.VERSION_NAME |
Terms & Conditions
Three rows that open external T&C URLs via Intent.ACTION_VIEW:
| Row | URL |
|---|---|
| MIB | https://faisanet.mib.com.mv/terms |
| BML | https://www.bankofmaldives.com.mv/storage/file/121/10289/terms-conditions-online-banking-en.pdf |
| Fahipay | https://fahipay.mv/tos/ |
Donate
Optional MVR and USD donate buttons. Visibility is driven by BuildConfig.ACCOUNT_MVR and BuildConfig.ACCOUNT_USD — if neither is set, the entire Donate section is hidden (SettingsAboutFragment.kt:43-53).
Tapping a donate button calls:
TransferFragment.newInstance(
accountNumber = BuildConfig.ACCOUNT_MVR or ACCOUNT_USD,
displayName = getString(R.string.app_name),
subtitle = accountNumber,
colorHex = "#607D8B",
imageHash = null,
)
and shows it with HomeActivity.showWithBackStack(fragment). The user then enters the amount and proceeds as a normal Transfer.