mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-21 23:48:00 +00:00
fix: disable referrer input when pre-filled from deep link
Prevent user from editing or clearing the referrer address when it comes from a referral deep link to ensure correct on-chain submission.
This commit is contained in:
+3
@@ -65,6 +65,9 @@ class CitizenshipBottomSheet : BaseBottomSheetFragment<CitizenshipViewModel, Fra
|
||||
val referrer = arguments?.getString(KEY_REFERRER)
|
||||
if (!referrer.isNullOrBlank()) {
|
||||
binder.citizenshipReferrerInput.setText(referrer)
|
||||
binder.citizenshipReferrerInput.isEnabled = false
|
||||
binder.citizenshipReferrerLayout.isEnabled = false
|
||||
binder.citizenshipReferrerLayout.hint = getString(R.string.citizenship_referrer_hint)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user