[PS] added fund landing as kyc source (#5395)
This commit is contained in:
committed by
GitHub Enterprise
parent
3d8bd59a83
commit
85aa6b7daf
@@ -23,6 +23,7 @@ import com.navi.amc.R
|
||||
import com.navi.amc.common.fragment.AmcBaseFragment
|
||||
import com.navi.amc.databinding.FundListFragmentV2LayoutBinding
|
||||
import com.navi.amc.fundbuy.viewmodel.FundListViewModel
|
||||
import com.navi.amc.navigator.NaviAmcDeeplinkNavigator
|
||||
import com.navi.amc.utils.*
|
||||
import com.navi.base.model.ActionData
|
||||
import com.navi.base.model.NaviClickAction
|
||||
@@ -50,7 +51,14 @@ class FundListingFragmentV2 : AmcBaseFragment(), WidgetCallback {
|
||||
NaviAdapter(widgetCallback = this, factory = ViewHolderFactoryImpl())
|
||||
|
||||
override val screenName: String
|
||||
get() = AmcAnalytics.FUND_LIST
|
||||
get() {
|
||||
val category = arguments?.getString(Constant.FUND_CATEGORY).orEmpty()
|
||||
if (category == SubPageStatusType.FUND_LANDING
|
||||
&& arguments?.getString(Constant.V2).toBoolean()) return AmcAnalytics.FUND_LANDING_V2
|
||||
else if (category == SubPageStatusType.FUND_LANDING) return AmcAnalytics.FUND_LANDING_V1
|
||||
else if (category.isNotNullAndNotEmpty()) return AmcAnalytics.FUND_CATEOGRY_LIST
|
||||
else return AmcAnalytics.FUND_LIST
|
||||
}
|
||||
|
||||
override fun onCreateView(
|
||||
inflater: LayoutInflater,
|
||||
@@ -174,6 +182,14 @@ class FundListingFragmentV2 : AmcBaseFragment(), WidgetCallback {
|
||||
Pair(Constant.FUND_CATEGORY, actionData?.getValueFromActionData(Constant.FUND_CATEGORY).orEmpty())
|
||||
)
|
||||
)
|
||||
if (actionData?.url?.contains(
|
||||
NaviAmcDeeplinkNavigator.AMC.plus("/").plus(NaviAmcDeeplinkNavigator.KYC), true
|
||||
).orFalse()
|
||||
) {
|
||||
TempStorageHelper.kycSourceInfo = mapOf(
|
||||
Constant.KYC_SOURCE_SCREEN to screenName
|
||||
)
|
||||
}
|
||||
fragmentInterchangeListener?.navigateToNextScreen(actionData)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user