|
@ -27,6 +27,7 @@ import com.remit.jmecustomer.R |
|
|
import com.remit.jmecustomer.RemitApplication |
|
|
import com.remit.jmecustomer.RemitApplication |
|
|
import com.remit.jmecustomer.base.BaseFragment |
|
|
import com.remit.jmecustomer.base.BaseFragment |
|
|
import com.remit.jmecustomer.base.PrefKeys |
|
|
import com.remit.jmecustomer.base.PrefKeys |
|
|
|
|
|
import com.remit.jmecustomer.common.customwidgets.CustomAlertDialog |
|
|
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialog |
|
|
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialog |
|
|
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialog.GenericDialogPromptListener |
|
|
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialog.GenericDialogPromptListener |
|
|
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialogSingleButton |
|
|
import com.remit.jmecustomer.common.customwidgets.common.GenericPromptDialogSingleButton |
|
@ -146,6 +147,7 @@ class ProfileFragment : BaseFragment(), View.OnClickListener, |
|
|
binding.tvTermAndCondition.setOnClickListener(this) |
|
|
binding.tvTermAndCondition.setOnClickListener(this) |
|
|
binding.tvFraudGuarantee.setOnClickListener(this) |
|
|
binding.tvFraudGuarantee.setOnClickListener(this) |
|
|
binding.llAccountStatement.setOnClickListener(this) |
|
|
binding.llAccountStatement.setOnClickListener(this) |
|
|
|
|
|
binding.linUploadSlip.setOnClickListener(this) |
|
|
viewModel!!.subscribeToUserProfileInfoFetchEvent().observe( |
|
|
viewModel!!.subscribeToUserProfileInfoFetchEvent().observe( |
|
|
this |
|
|
this |
|
|
) { body: UserProfile? -> |
|
|
) { body: UserProfile? -> |
|
@ -293,6 +295,16 @@ class ProfileFragment : BaseFragment(), View.OnClickListener, |
|
|
R.id.ll_account_statement -> { |
|
|
R.id.ll_account_statement -> { |
|
|
startActivity(Intent(requireActivity(), WalletStatementV2Activity::class.java)) |
|
|
startActivity(Intent(requireActivity(), WalletStatementV2Activity::class.java)) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
R.id.lin_upload_slip -> { |
|
|
|
|
|
val unverifiedMessage: String? = homeViewModel?.checkIfUserVerified() |
|
|
|
|
|
if (unverifiedMessage == null) startActivity( |
|
|
|
|
|
Intent( |
|
|
|
|
|
requireContext(), |
|
|
|
|
|
DepositSlipActivity::class.java |
|
|
|
|
|
) |
|
|
|
|
|
) else showPopUpMessage(unverifiedMessage, CustomAlertDialog.AlertType.ALERT, null) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|