Skip to content

Commit 7a1f6a7

Browse files
committed
Resolved minor bug on language prefs
1 parent f573017 commit 7a1f6a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

furahitechpay/src/main/java/com/furahitechpay/furahitechpay/card/CardFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class CardFragment : BaseFragment(), CardView, PayCallback{
126126

127127
private lateinit var postalCode: TextInputEditText
128128

129-
private val language = if(furahitechPay.isCardEnglish) "en" else "swa"
129+
private val language = if(furahitechPay.isCardEnglish) FurahitechPay.LANGUAGE_ENGLISH else FurahitechPay.LANGUAGE_SWAHILI
130130

131131
@SuppressLint("SetTextI18n")
132132
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {

furahitechpay/src/main/java/com/furahitechpay/furahitechpay/mobile/MobileFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class MobileFragment : BaseFragment(), MobileView, PayCallback {
106106

107107
private var selectedPrice = paymentRequest.amount
108108

109-
private val language = if(furahitechPay.isCardEnglish) "en" else "swa"
109+
private val language = if(furahitechPay.isMobileEnglish) FurahitechPay.LANGUAGE_ENGLISH else FurahitechPay.LANGUAGE_SWAHILI
110110

111111

112112
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {

0 commit comments

Comments
 (0)