diff --git a/.github/workflows/master_dev_ci.yml b/.github/workflows/master_dev_ci.yml index 3e7f4af46..227c5fdad 100644 --- a/.github/workflows/master_dev_ci.yml +++ b/.github/workflows/master_dev_ci.yml @@ -96,13 +96,6 @@ jobs: path: core/build/reports/ - uses: actions/checkout@v4 - - # Set up jdk 17 - - name: Setup JDK 17 - uses: actions/setup-java@v1 - with: - java-version: 17 - - name: PMD Check[MifosPay] run: ./gradlew mifospay:pmd diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/DebitCardFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/DebitCardFragment.java index 2801deea4..dd1df51cd 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/DebitCardFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/DebitCardFragment.java @@ -19,7 +19,6 @@ import org.mifos.mobilewallet.mifospay.bank.BankContract; import org.mifos.mobilewallet.mifospay.bank.presenter.DebitCardPresenter; import org.mifos.mobilewallet.mifospay.bank.ui.SetupUpiPinActivity; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.utils.Constants; import org.mifos.mobilewallet.mifospay.utils.Toaster; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/OtpFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/OtpFragment.java index a88d3dacf..7c8077e16 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/OtpFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/OtpFragment.java @@ -1,8 +1,6 @@ package org.mifos.mobilewallet.mifospay.bank.fragment; import android.os.Bundle; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; @@ -10,11 +8,13 @@ import android.view.inputmethod.EditorInfo; import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; + import com.alimuzaffar.lib.pin.PinEntryEditText; import org.mifos.mobilewallet.mifospay.R; import org.mifos.mobilewallet.mifospay.bank.ui.SetupUpiPinActivity; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.utils.Constants; import org.mifos.mobilewallet.mifospay.utils.Toaster; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/SetupUpiPinDialog.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/SetupUpiPinDialog.java index 14739837f..70d01e3f5 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/SetupUpiPinDialog.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/SetupUpiPinDialog.java @@ -13,7 +13,6 @@ import org.mifos.mobilewallet.mifospay.R; import org.mifos.mobilewallet.mifospay.bank.adapters.UpiPinPagerAdapter; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.utils.Constants; import butterknife.BindView; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/UpiPinFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/UpiPinFragment.java index a633e8c35..6a96fc855 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/UpiPinFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/fragment/UpiPinFragment.java @@ -1,8 +1,6 @@ package org.mifos.mobilewallet.mifospay.bank.fragment; import android.os.Bundle; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; import android.view.KeyEvent; import android.view.LayoutInflater; import android.view.View; @@ -10,13 +8,15 @@ import android.view.inputmethod.EditorInfo; import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; + import com.alimuzaffar.lib.pin.PinEntryEditText; import org.mifos.mobilewallet.mifospay.R; import org.mifos.mobilewallet.mifospay.bank.BankContract; import org.mifos.mobilewallet.mifospay.bank.presenter.UpiPinPresenter; import org.mifos.mobilewallet.mifospay.bank.ui.SetupUpiPinActivity; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.utils.Constants; import org.mifos.mobilewallet.mifospay.utils.Toaster; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/ui/AccountsFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/ui/AccountsFragment.java index f973975a4..5c75fd13c 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/ui/AccountsFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/bank/ui/AccountsFragment.java @@ -4,22 +4,22 @@ import android.content.Intent; import android.content.res.Resources; import android.os.Bundle; -import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; -import androidx.recyclerview.widget.DividerItemDecoration; -import androidx.recyclerview.widget.LinearLayoutManager; -import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; +import androidx.recyclerview.widget.DividerItemDecoration; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; +import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; + import org.mifos.mobilewallet.core.domain.model.BankAccountDetails; import org.mifos.mobilewallet.mifospay.R; import org.mifos.mobilewallet.mifospay.bank.BankContract; import org.mifos.mobilewallet.mifospay.bank.adapters.BankAccountsAdapter; import org.mifos.mobilewallet.mifospay.bank.presenter.BankAccountsPresenter; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.utils.Constants; import org.mifos.mobilewallet.mifospay.utils.DebugUtil; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/history/ui/HistoryFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/history/ui/HistoryFragment.java index 964072d7d..63e6d79a3 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/history/ui/HistoryFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/history/ui/HistoryFragment.java @@ -1,12 +1,10 @@ package org.mifos.mobilewallet.mifospay.history.ui; +import static org.mifos.mobilewallet.core.domain.model.TransactionType.CREDIT; +import static org.mifos.mobilewallet.core.domain.model.TransactionType.DEBIT; + import android.content.res.Resources; import android.os.Bundle; -import com.google.android.material.chip.Chip; -import androidx.transition.TransitionManager; -import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; -import androidx.recyclerview.widget.LinearLayoutManager; -import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -15,9 +13,15 @@ import android.widget.ProgressBar; import android.widget.TextView; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; +import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; +import androidx.transition.TransitionManager; + +import com.google.android.material.chip.Chip; + import org.mifos.mobilewallet.core.domain.model.Transaction; import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.history.HistoryContract; import org.mifos.mobilewallet.mifospay.history.presenter.HistoryPresenter; @@ -35,9 +39,6 @@ import butterknife.OnClick; import dagger.hilt.android.AndroidEntryPoint; -import static org.mifos.mobilewallet.core.domain.model.TransactionType.CREDIT; -import static org.mifos.mobilewallet.core.domain.model.TransactionType.DEBIT; - @AndroidEntryPoint public class HistoryFragment extends BaseFragment implements HistoryContract.HistoryView { diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/history/ui/TransactionDetailDialog.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/history/ui/TransactionDetailDialog.java index e7856f937..54e7850e0 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/history/ui/TransactionDetailDialog.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/history/ui/TransactionDetailDialog.java @@ -5,9 +5,6 @@ import android.graphics.Color; import android.net.Uri; import android.os.Bundle; -import com.google.android.material.bottomsheet.BottomSheetBehavior; -import com.google.android.material.bottomsheet.BottomSheetDialog; -import com.google.android.material.bottomsheet.BottomSheetDialogFragment; import android.view.View; import android.widget.ImageView; import android.widget.LinearLayout; @@ -15,16 +12,19 @@ import android.widget.RelativeLayout; import android.widget.TextView; +import com.google.android.material.bottomsheet.BottomSheetBehavior; +import com.google.android.material.bottomsheet.BottomSheetDialog; +import com.google.android.material.bottomsheet.BottomSheetDialogFragment; + import org.mifos.mobilewallet.core.data.fineract.entity.accounts.savings.TransferDetail; import org.mifos.mobilewallet.core.domain.model.Transaction; import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.history.HistoryContract; import org.mifos.mobilewallet.mifospay.history.presenter.TransactionDetailPresenter; import org.mifos.mobilewallet.mifospay.receipt.ui.ReceiptActivity; import org.mifos.mobilewallet.mifospay.utils.Constants; -import org.mifos.mobilewallet.mifospay.utils.Utils; import org.mifos.mobilewallet.mifospay.utils.Toaster; +import org.mifos.mobilewallet.mifospay.utils.Utils; import java.util.ArrayList; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/invoice/ui/InvoicesFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/invoice/ui/InvoicesFragment.java index a883d8b56..1c6bb0aa3 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/invoice/ui/InvoicesFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/invoice/ui/InvoicesFragment.java @@ -3,12 +3,6 @@ import android.content.Intent; import android.content.res.Resources; import android.os.Bundle; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; -import androidx.recyclerview.widget.DividerItemDecoration; -import androidx.recyclerview.widget.LinearLayoutManager; -import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -16,9 +10,15 @@ import android.widget.ProgressBar; import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.DividerItemDecoration; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; +import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; + import org.mifos.mobilewallet.core.data.fineract.entity.Invoice; import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.invoice.InvoiceContract; import org.mifos.mobilewallet.mifospay.invoice.presenter.InvoicesPresenter; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCDescriptionFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCDescriptionFragment.java index 19a1a0321..f73579f07 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCDescriptionFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCDescriptionFragment.java @@ -3,8 +3,6 @@ import android.content.res.Resources; import android.graphics.PorterDuff; import android.os.Bundle; -import androidx.annotation.Nullable; -import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -15,9 +13,11 @@ import android.widget.ProgressBar; import android.widget.TextView; +import androidx.annotation.Nullable; +import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; + import org.mifos.mobilewallet.core.data.fineract.entity.kyc.KYCLevel1Details; import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.kyc.KYCContract; import org.mifos.mobilewallet.mifospay.kyc.presenter.KYCDescriptionPresenter; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel1Fragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel1Fragment.java index c8e8ae4f2..f42e10691 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel1Fragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel1Fragment.java @@ -3,7 +3,6 @@ import android.app.DatePickerDialog; import android.content.Intent; import android.os.Bundle; -import androidx.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -11,10 +10,11 @@ import android.widget.DatePicker; import android.widget.EditText; +import androidx.annotation.Nullable; + import com.hbb20.CountryCodePicker; import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.kyc.KYCContract; import org.mifos.mobilewallet.mifospay.kyc.presenter.KYCLevel1Presenter; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel2Fragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel2Fragment.java index 65e02a54c..bc3350869 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel2Fragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel2Fragment.java @@ -5,9 +5,6 @@ import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import androidx.core.content.ContextCompat; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -15,8 +12,11 @@ import android.widget.EditText; import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.core.content.ContextCompat; + import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.kyc.KYCContract; import org.mifos.mobilewallet.mifospay.kyc.presenter.KYCLevel2Presenter; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel3Fragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel3Fragment.java index 658845ac8..716a4e9a4 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel3Fragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/kyc/ui/KYCLevel3Fragment.java @@ -1,13 +1,13 @@ package org.mifos.mobilewallet.mifospay.kyc.ui; import android.os.Bundle; -import androidx.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import androidx.annotation.Nullable; + import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.kyc.KYCContract; import org.mifos.mobilewallet.mifospay.kyc.presenter.KYCLevel3Presenter; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/payments/ui/RequestFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/payments/ui/RequestFragment.java index 2c28b0cb7..4d85e8292 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/payments/ui/RequestFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/payments/ui/RequestFragment.java @@ -2,15 +2,15 @@ import android.content.Intent; import android.os.Bundle; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; + import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.home.BaseHomeContract; import org.mifos.mobilewallet.mifospay.payments.presenter.TransferPresenter; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/payments/ui/SendFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/payments/ui/SendFragment.java index 96a8b0cf4..d24259b7b 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/payments/ui/SendFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/payments/ui/SendFragment.java @@ -9,12 +9,6 @@ import android.os.Build; import android.os.Bundle; import android.provider.ContactsContract; -import androidx.annotation.NonNull; -import androidx.annotation.Nullable; -import com.google.android.material.chip.Chip; -import com.google.android.material.textfield.TextInputLayout; -import androidx.transition.TransitionManager; -import androidx.core.content.ContextCompat; import android.telephony.PhoneNumberFormattingTextWatcher; import android.view.LayoutInflater; import android.view.View; @@ -25,8 +19,15 @@ import android.widget.TextView; import android.widget.Toast; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import androidx.core.content.ContextCompat; +import androidx.transition.TransitionManager; + +import com.google.android.material.chip.Chip; +import com.google.android.material.textfield.TextInputLayout; + import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.common.ui.MakeTransferFragment; import org.mifos.mobilewallet.mifospay.home.BaseHomeContract; diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui/AddCardDialog.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui/AddCardDialog.java index 83388dd04..a4119d845 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui/AddCardDialog.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui/AddCardDialog.java @@ -3,17 +3,19 @@ import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; -import androidx.annotation.NonNull; -import com.google.android.material.bottomsheet.BottomSheetBehavior; -import com.google.android.material.bottomsheet.BottomSheetDialog; -import com.google.android.material.bottomsheet.BottomSheetDialogFragment; -import com.google.android.material.textfield.TextInputLayout; import android.view.View; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; +import androidx.annotation.NonNull; + +import com.google.android.material.bottomsheet.BottomSheetBehavior; +import com.google.android.material.bottomsheet.BottomSheetDialog; +import com.google.android.material.bottomsheet.BottomSheetDialogFragment; +import com.google.android.material.textfield.TextInputLayout; + import org.mifos.mobilewallet.core.data.fineract.entity.savedcards.Card; import org.mifos.mobilewallet.mifospay.R; import org.mifos.mobilewallet.mifospay.savedcards.CardsContract; @@ -24,11 +26,11 @@ import java.util.Calendar; import java.util.List; +import butterknife.Action; import butterknife.BindView; import butterknife.BindViews; import butterknife.ButterKnife; import butterknife.OnClick; -import butterknife.Action; /** * This is a Dialog class to add a new card. @@ -63,8 +65,8 @@ public class AddCardDialog extends BottomSheetDialogFragment { List mTextInputLayouts; private BottomSheetBehavior mBottomSheetBehavior; private boolean fieldsValid; - private final butterknife.Action CHECK_ERROR = - new butterknife.Action() { + private final Action CHECK_ERROR = + new Action() { @Override public void apply(@NonNull TextInputLayout view, int index) { EditText editText = view.getEditText(); diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui/CardsFragment.java b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui/CardsFragment.java index 3dcc06a27..593957c3c 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui/CardsFragment.java +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/savedcards/ui/CardsFragment.java @@ -1,13 +1,9 @@ package org.mifos.mobilewallet.mifospay.savedcards.ui; +import static org.mifos.mobilewallet.mifospay.utils.Utils.isBlank; + import android.content.res.Resources; import android.os.Bundle; -import androidx.annotation.Nullable; -import com.google.android.material.chip.Chip; -import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; -import androidx.recyclerview.widget.DividerItemDecoration; -import androidx.recyclerview.widget.LinearLayoutManager; -import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; @@ -19,9 +15,16 @@ import android.widget.ProgressBar; import android.widget.TextView; +import androidx.annotation.Nullable; +import androidx.recyclerview.widget.DividerItemDecoration; +import androidx.recyclerview.widget.LinearLayoutManager; +import androidx.recyclerview.widget.RecyclerView; +import androidx.swiperefreshlayout.widget.SwipeRefreshLayout; + +import com.google.android.material.chip.Chip; + import org.mifos.mobilewallet.core.data.fineract.entity.savedcards.Card; import org.mifos.mobilewallet.mifospay.R; -import org.mifos.mobilewallet.mifospay.base.BaseActivity; import org.mifos.mobilewallet.mifospay.base.BaseFragment; import org.mifos.mobilewallet.mifospay.savedcards.CardsContract; import org.mifos.mobilewallet.mifospay.savedcards.presenter.CardsPresenter; @@ -40,8 +43,6 @@ import butterknife.OnTextChanged; import dagger.hilt.android.AndroidEntryPoint; -import static org.mifos.mobilewallet.mifospay.utils.Utils.isBlank; - /** * This is the UI component of the SavedCards Architecture. * @author ankur