|
7 | 7 | import android.graphics.Typeface; |
8 | 8 | import android.os.Build; |
9 | 9 | import android.os.Bundle; |
10 | | -import androidx.constraintlayout.widget.ConstraintLayout; |
11 | | -import androidx.constraintlayout.widget.ConstraintSet; |
12 | | -import androidx.constraintlayout.widget.Guideline; |
13 | | -import androidx.transition.AutoTransition; |
14 | | -import androidx.transition.TransitionManager; |
15 | | -import androidx.fragment.app.FragmentTransaction; |
16 | | -import androidx.core.view.ViewCompat; |
17 | | -import androidx.appcompat.app.AppCompatActivity; |
18 | 10 | import android.text.Spannable; |
19 | 11 | import android.text.SpannableStringBuilder; |
20 | 12 | import android.text.style.StyleSpan; |
|
23 | 15 | import android.view.View; |
24 | 16 | import android.widget.TextView; |
25 | 17 |
|
| 18 | +import androidx.appcompat.app.AppCompatActivity; |
| 19 | +import androidx.constraintlayout.widget.ConstraintLayout; |
| 20 | +import androidx.constraintlayout.widget.ConstraintSet; |
| 21 | +import androidx.constraintlayout.widget.Guideline; |
| 22 | +import androidx.core.view.ViewCompat; |
| 23 | +import androidx.fragment.app.FragmentTransaction; |
| 24 | +import androidx.transition.AutoTransition; |
| 25 | +import androidx.transition.TransitionManager; |
| 26 | + |
26 | 27 | import com.flutterwave.raveandroid.account.AccountFragment; |
27 | 28 | import com.flutterwave.raveandroid.ach.AchFragment; |
28 | 29 | import com.flutterwave.raveandroid.banktransfer.BankTransferFragment; |
29 | 30 | import com.flutterwave.raveandroid.barter.BarterFragment; |
30 | 31 | import com.flutterwave.raveandroid.card.CardFragment; |
31 | | -import com.flutterwave.raveandroid.data.PaymentTypesCurrencyChecker; |
32 | 32 | import com.flutterwave.raveandroid.data.events.ScreenLaunchEvent; |
33 | 33 | import com.flutterwave.raveandroid.data.events.ScreenMinimizeEvent; |
34 | 34 | import com.flutterwave.raveandroid.data.events.SessionFinishedEvent; |
35 | 35 | import com.flutterwave.raveandroid.di.components.DaggerRaveUiComponent; |
36 | 36 | import com.flutterwave.raveandroid.di.components.RaveUiComponent; |
| 37 | +import com.flutterwave.raveandroid.di.modules.AndroidModule; |
37 | 38 | import com.flutterwave.raveandroid.francMobileMoney.FrancMobileMoneyFragment; |
38 | 39 | import com.flutterwave.raveandroid.ghmobilemoney.GhMobileMoneyFragment; |
39 | 40 | import com.flutterwave.raveandroid.mpesa.MpesaFragment; |
|
42 | 43 | import com.flutterwave.raveandroid.rave_logger.Event; |
43 | 44 | import com.flutterwave.raveandroid.rave_logger.EventLogger; |
44 | 45 | import com.flutterwave.raveandroid.rave_logger.di.EventLoggerModule; |
45 | | -import com.flutterwave.raveandroid.di.modules.AndroidModule; |
46 | 46 | import com.flutterwave.raveandroid.rave_presentation.di.DaggerRaveComponent; |
47 | 47 | import com.flutterwave.raveandroid.rave_presentation.di.RaveComponent; |
48 | 48 | import com.flutterwave.raveandroid.rave_remote.di.RemoteModule; |
@@ -548,18 +548,12 @@ private void generatePaymentTiles() { |
548 | 548 | // Reverse payment types order since payment types are added from the bottom |
549 | 549 | Collections.reverse(orderedPaymentTypesList); |
550 | 550 |
|
551 | | - ArrayList<Integer> currencyCheckedPaymentTypesList = |
552 | | - new PaymentTypesCurrencyChecker().applyCurrencyChecks( |
553 | | - orderedPaymentTypesList, |
554 | | - ravePayInitializer.getCurrency() |
555 | | - ); |
556 | | - |
557 | | - tileCount = currencyCheckedPaymentTypesList.size(); |
| 551 | + tileCount = orderedPaymentTypesList.size(); |
558 | 552 | if (tileCount > 8) paymentTilesTextSize = 18f; |
559 | 553 | else paymentTilesTextSize = 20f; |
560 | 554 |
|
561 | | - for (int index = 0; index < currencyCheckedPaymentTypesList.size(); index++) |
562 | | - addPaymentType(currencyCheckedPaymentTypesList.get(index)); |
| 555 | + for (int index = 0; index < orderedPaymentTypesList.size(); index++) |
| 556 | + addPaymentType(orderedPaymentTypesList.get(index)); |
563 | 557 | } |
564 | 558 |
|
565 | 559 | private void addPaymentType(int paymentType) { |
|
0 commit comments