|
@ -924,9 +924,9 @@ class StepTwoBajajFDFragment : BaseFragment() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private fun setUpRecyclerView() { |
|
|
private fun setUpRecyclerView() { |
|
|
|
|
|
|
|
|
if ((activity as BajajFdMainActivity).getClientDetailsResponse.ObjectResponse?.ClientBanklist?.isNotEmpty()!!) { |
|
|
if ((activity as BajajFdMainActivity).getClientDetailsResponse.ObjectResponse?.ClientBanklist?.isNotEmpty()!!) { |
|
|
binding.rvClientBankList.layoutManager = |
|
|
|
|
|
LinearLayoutManager(activity as BajajFdMainActivity) |
|
|
|
|
|
|
|
|
binding.rvClientBankList.layoutManager = LinearLayoutManager(activity as BajajFdMainActivity) |
|
|
bankListAdapter = BankListAdapter( |
|
|
bankListAdapter = BankListAdapter( |
|
|
(activity as BajajFdMainActivity).getClientDetailsResponse.ObjectResponse?.ClientBanklist, |
|
|
(activity as BajajFdMainActivity).getClientDetailsResponse.ObjectResponse?.ClientBanklist, |
|
|
(activity as BajajFdMainActivity).getClientDetailsResponse.ObjectResponse?.clientDetails?.clientMasterMFD?.CLIENT_ACCNO1 |
|
|
(activity as BajajFdMainActivity).getClientDetailsResponse.ObjectResponse?.clientDetails?.clientMasterMFD?.CLIENT_ACCNO1 |
|
@ -1045,34 +1045,29 @@ class StepTwoBajajFDFragment : BaseFragment() { |
|
|
) |
|
|
) |
|
|
binding.spTitle.setAdapter(adapter) |
|
|
binding.spTitle.setAdapter(adapter) |
|
|
|
|
|
|
|
|
val titleText = |
|
|
|
|
|
(activity as BajajFdMainActivity).getClientDetailsResponse.ObjectResponse?.clientDetails?.clientMasterMFD?.Client_Title |
|
|
|
|
|
|
|
|
val titleText = (activity as BajajFdMainActivity).getClientDetailsResponse.ObjectResponse?.clientDetails?.clientMasterMFD?.Client_Title |
|
|
val newTitleText = "$titleText." |
|
|
val newTitleText = "$titleText." |
|
|
if (titleText?.isEmpty()!!) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (titleText.isNullOrEmpty()) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
binding.spTitle.setText( |
|
|
binding.spTitle.setText( |
|
|
adapter.getItem(0)?.Value, |
|
|
adapter.getItem(0)?.Value, |
|
|
false |
|
|
false |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
for (title in listOfTitle) { |
|
|
for (title in listOfTitle) { |
|
|
if (title.Value == newTitleText) { |
|
|
if (title.Value == newTitleText) { |
|
|
binding.spTitle.setText(title.Value, false) |
|
|
binding.spTitle.setText(title.Value, false) |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|
// binding.spTitle.setOnTouchListener { v, event -> |
|
|
|
|
|
// when (event?.action) { |
|
|
|
|
|
// MotionEvent.ACTION_DOWN -> { |
|
|
|
|
|
// binding.spTitle.setText( |
|
|
|
|
|
// adapter.getItem(0)?.Value, |
|
|
|
|
|
// false |
|
|
|
|
|
// ) |
|
|
|
|
|
// |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// |
|
|
|
|
|
// v?.onTouchEvent(event) ?: true |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
binding.spNomineeTitle.setAdapter(adapter) |
|
|
binding.spNomineeTitle.setAdapter(adapter) |
|
|