Skip to content

Commit 9977b09

Browse files
committed
Zambia Mobile Money Update
1 parent 2eedc6a commit 9977b09

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

raveandroid/src/main/java/com/flutterwave/raveandroid/zmmobilemoney/ZmMobileMoneyFragment.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ public class ZmMobileMoneyFragment extends Fragment implements ZmMobileMoneyCont
5353
private TextInputLayout amountTil;
5454
private TextInputEditText phoneEt;
5555
private TextInputEditText amountEt;
56-
private TextInputLayout voucherTil;
57-
private TextInputEditText voucherEt;
5856
private ProgressDialog progressDialog;
5957
private ProgressDialog pollingProgressDialog;
6058

@@ -132,13 +130,6 @@ public void onItemSelected(AdapterView<?> parent, View view, int position, long
132130
if (network.equalsIgnoreCase(RaveConstants.mtn)) {
133131
validateInstructions = getResources().getString(R.string.mtn_validate_instructions);
134132
showInstructionsAndVoucher(false);
135-
} else if (network.equalsIgnoreCase(RaveConstants.tigo)) {
136-
validateInstructions = getResources().getString(R.string.tigo_validate_instructions);
137-
showInstructionsAndVoucher(false);
138-
} else if (network.equalsIgnoreCase(RaveConstants.vodafone)) {
139-
validateInstructions = getResources().getString(R.string.checkStatus);
140-
showInstructionsAndVoucher(true);
141-
instructionsTv.setText(Html.fromHtml(getResources().getString(R.string.vodafone_msg)));
142133
}
143134
}
144135
}
@@ -162,7 +153,6 @@ public void onClick(View view) {
162153
private void clearErrors() {
163154
amountTil.setError(null);
164155
phoneTil.setError(null);
165-
voucherTil.setError(null);
166156
}
167157

168158
private void collectData() {
@@ -199,10 +189,8 @@ public void onAmountValidationSuccessful(String amountToPay) {
199189
private void showInstructionsAndVoucher(boolean show) {
200190

201191
if (show) {
202-
voucherTil.setVisibility(View.VISIBLE);
203192
instructionsTv.setVisibility(View.VISIBLE);
204193
} else {
205-
voucherTil.setVisibility(View.GONE);
206194
instructionsTv.setVisibility(View.GONE);
207195
}
208196
}

raveandroid/src/main/res/layout/fragment_zm_mobile_money.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
android:descendantFocusability="beforeDescendants"
77
android:focusableInTouchMode="true"
88
android:orientation="vertical"
9-
tools:context="com.flutterwave.raveandroid.zmmobilemoney.ZmMobileMoneyFragment">
9+
tools:context="com.flutterwave.raveandroid.ghmobilemoney.GhMobileMoneyFragment">
1010

1111
<ScrollView
1212
android:layout_width="match_parent"
@@ -32,13 +32,21 @@
3232
android:layout_marginBottom="15dp"
3333
android:text="@string/pay" />
3434

35-
3635
<Spinner
3736
android:id="@+id/rave_networkSpinner"
3837
android:layout_width="match_parent"
3938
android:layout_height="50dp"
4039
android:layout_marginBottom="10dp" />
4140

41+
42+
<TextView
43+
android:id="@+id/instructionsTv"
44+
android:layout_width="wrap_content"
45+
android:layout_height="wrap_content"
46+
android:layout_marginBottom="20dp"
47+
android:gravity="left"
48+
tools:text="@string/vodafone_msg" />
49+
4250
<android.support.design.widget.TextInputLayout
4351
android:id="@+id/rave_phoneTil"
4452
android:layout_width="match_parent"
@@ -47,8 +55,8 @@
4755

4856
<android.support.design.widget.TextInputEditText
4957
android:id="@+id/rave_phoneEt"
50-
android:layout_width="match_parent"
51-
android:layout_height="wrap_content"
58+
android:layout_width="match_parent"
59+
android:layout_height="wrap_content"
5260
android:layout_below="@+id/rave_card1"
5361
android:hint="Phone no"
5462
android:inputType="phone" />
@@ -62,9 +70,9 @@
6270
android:layout_marginBottom="10dp">
6371

6472
<android.support.design.widget.TextInputEditText
65-
android:id="@+id/rave_amountTV"
6673
android:layout_width="match_parent"
6774
android:layout_height="wrap_content"
75+
android:id="@+id/rave_amountTV"
6876
android:layout_below="@+id/rave_card1"
6977
android:hint="@string/amount"
7078
android:inputType="numberDecimal" />

0 commit comments

Comments
 (0)