fixed the image gap issue and the screen refreshment issue (#5108)

This commit is contained in:
Ashutosh Y
2023-01-30 15:40:13 +05:30
committed by GitHub Enterprise
parent eed4c3c755
commit 83713cf39e
2 changed files with 8 additions and 2 deletions

View File

@@ -65,7 +65,6 @@ class FundListingFragmentV2 : AmcBaseFragment(), WidgetCallback {
initError(viewModel, showNewDesignSystemFragment = true)
initRecyclerView()
initObservers()
fetchData()
return binding.root
}
@@ -128,7 +127,7 @@ class FundListingFragmentV2 : AmcBaseFragment(), WidgetCallback {
binding.footer.title.setSpannableString(it.title)
binding.footer.btn.text = it.nextCta?.title
binding.footer.btn.setOnClickListener { view ->
fragmentInterchangeListener?.navigateToNextScreen(it.nextCta)
navigateToNextScreen(it.nextCta)
}
}
binding.rvProducts.addOnScrollListener(object : RecyclerView.OnScrollListener() {
@@ -151,6 +150,11 @@ class FundListingFragmentV2 : AmcBaseFragment(), WidgetCallback {
}
}
override fun onStart() {
super.onStart()
fetchData()
}
override fun onClick(naviClickAction: NaviClickAction) {
when (naviClickAction) {
is NaviWidgetClickWithActionData -> {

View File

@@ -10,6 +10,8 @@
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitXY"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"