Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrated SetUpUpiPinActivity to compose screen #1597 #1601

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,54 +24,17 @@ import org.mifos.mobilewallet.mifospay.utils.Constants
import org.mifos.mobilewallet.mifospay.utils.Toaster
import javax.inject.Inject

@AndroidEntryPoint
class SetupUpiPinActivity : BaseActivity(), SetupUpiPinView {
@JvmField
@Inject
var mPresenter: SetupUpiPinPresenter? = null
var mSetupUpiPinPresenter: BankContract.SetupUpiPinPresenter? = null

@JvmField
@BindView(R.id.fl_debit_card)
var mFlDebitCard: FrameLayout? = null

@JvmField
@BindView(R.id.toolbar)
var mToolbar: Toolbar? = null

@JvmField
@BindView(R.id.fl_otp)
var mFlOtp: FrameLayout? = null

@JvmField
@BindView(R.id.fl_upi_pin)
var mFlUpiPin: FrameLayout? = null

@JvmField
@BindView(R.id.cv_debit_card)
var mCvDebitCard: CardView? = null

@JvmField
@BindView(R.id.tv_debit_card)
var mTvDebitCard: TextView? = null

@JvmField
@BindView(R.id.tv_otp)
var mTvOtp: TextView? = null

@JvmField
@BindView(R.id.tv_upi)
var mTvUpi: TextView? = null
class SetupUpiPinActivity : ComponentActivity(), BankContract.SetupUpiPinView {
private val setupUpiPinPresenter: SetupUpiPinPresenter by lazy { SetupUpiPinPresenter() }
private var bankAccountDetails: BankAccountDetails? = null
private var index = 0
private var type: String? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_setup_upi_pin)
ButterKnife.bind(this)
showColoredBackButton(Constants.BLACK_BACK_BUTTON)
setToolbarTitle(Constants.SETUP_UPI_PIN)
mPresenter!!.attachView(this)
setContent {
SetupUpiPinScreen()
}

val b = intent.extras
bankAccountDetails = b!!.getParcelable(Constants.BANK_ACCOUNT_DETAILS)
index = b.getInt(Constants.INDEX)
Expand Down