Skip to content

Commit c994758

Browse files
committed
Added contacts label field
1 parent a50101d commit c994758

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import com.furahitechpay.furahitechpay.mobile.MobilePresenter.Companion.LABEL_AD
2525
import com.furahitechpay.furahitechpay.mobile.MobilePresenter.Companion.LABEL_BUTTON_INFO
2626
import com.furahitechpay.furahitechpay.mobile.MobilePresenter.Companion.LABEL_BUTTON_PAY
2727
import com.furahitechpay.furahitechpay.mobile.MobilePresenter.Companion.LABEL_CITY_NAME
28+
import com.furahitechpay.furahitechpay.mobile.MobilePresenter.Companion.LABEL_CONTACT
2829
import com.furahitechpay.furahitechpay.mobile.MobilePresenter.Companion.LABEL_CONTACT_INFO
2930
import com.furahitechpay.furahitechpay.mobile.MobilePresenter.Companion.LABEL_COUNTRY_NAME
3031
import com.furahitechpay.furahitechpay.mobile.MobilePresenter.Companion.LABEL_EXTRA_INFO
@@ -46,12 +47,14 @@ class MobileFragment : BaseFragment(), MobileView, PayCallback {
4647
"swa" to hashMapOf(
4748
LABEL_PAYMENT_INFO to "Taarifa za Malipo", LABEL_EXTRA_INFO to "Maelezo",
4849
LABEL_CONTACT_INFO to "Taarifa za mawasiliano",LABEL_BUTTON_INFO to "Nakili Kumbukumbu Namba",
49-
LABEL_BUTTON_PAY to "Tengeneza Kumbukumbu namba", LABEL_HOWTO_PAY to "Jinsi ya kulipia"
50+
LABEL_BUTTON_PAY to "Tengeneza Kumbukumbu namba", LABEL_HOWTO_PAY to "Jinsi ya kulipia",
51+
LABEL_CONTACT to "Weka namba yako ya simu kwa ajili ya malipo hapo chini"
5052
),
5153
"en" to hashMapOf(
5254
LABEL_PAYMENT_INFO to "Payment Information", LABEL_EXTRA_INFO to "Extra Information",
5355
LABEL_CONTACT_INFO to "Contact Information", LABEL_BUTTON_INFO to "Copy Token",
54-
LABEL_BUTTON_PAY to "Generate Token", LABEL_HOWTO_PAY to "Payment Instruction")
56+
LABEL_BUTTON_PAY to "Generate Token", LABEL_HOWTO_PAY to "Payment Instruction",
57+
LABEL_CONTACT to "Enter your phone number to be used for payment below")
5558
)
5659

5760
private val furahitechPay = FurahitechPay.instance
@@ -186,6 +189,7 @@ class MobileFragment : BaseFragment(), MobileView, PayCallback {
186189
view.findViewById<TextView>(R.id.extra_info_label).text = languageMap[LABEL_EXTRA_INFO]
187190
view.findViewById<TextView>(R.id.payment_for).text = furahitechPay.paymentRequest!!.paymentForWhat[language]
188191
view.findViewById<TextView>(R.id.instruction_label).text = languageMap[LABEL_HOWTO_PAY]
192+
view.findViewById<TextView>(R.id.contact_label).text = languageMap[LABEL_CONTACT]
189193
startPaymentBtn.text = languageMap[LABEL_BUTTON_PAY]
190194
}
191195

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class MobilePresenter(view: MobileView) : BasePresenter<MobileView>(view) {
9999
internal const val LABEL_BUTTON_INFO = "label_button_info"
100100
internal const val LABEL_BUTTON_PAY = "label_button_pay"
101101
internal const val LABEL_HOWTO_PAY = "label_how_topay"
102+
internal const val LABEL_CONTACT = "label_contact"
102103
internal const val LABEL_FIRST_NAME = "fist_name"
103104
internal const val LABEL_LAST_NAME = "last_name"
104105
internal const val LABEL_ADRESS = "address"

furahitechpay/src/main/res/layout/fragment_mobile.xml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,28 @@
107107
android:layout_marginTop="@dimen/dimen_16dp"
108108
android:layout_width="match_parent"
109109
android:layout_height="wrap_content"
110-
android:orientation="horizontal"
110+
android:orientation="vertical"
111111
android:layout_gravity="center_vertical">
112112

113113
<TextView
114114
android:id="@+id/contact_info_label"
115-
android:layout_width="0dp"
115+
android:layout_width="match_parent"
116116
android:layout_height="wrap_content"
117-
android:layout_marginBottom="@dimen/dimen_16dp"
118117
android:layout_weight="2"
119118
android:text="Taarifa za Mawasiliano"
120119
android:textColor="#444"
121120
android:textSize="@dimen/text_18sp"
122121
android:textStyle="bold" />
122+
123+
<TextView
124+
android:layout_marginTop="@dimen/dimen_10dp"
125+
android:id="@+id/contact_label"
126+
android:layout_marginBottom="@dimen/dimen_16dp"
127+
android:layout_width="wrap_content"
128+
android:layout_height="wrap_content"
129+
android:text="Flat No 404, Skyline Apartments, Vizag - 500576" />
130+
131+
123132
</LinearLayout>
124133

125134

0 commit comments

Comments
 (0)