Handle WhatsNewCard (#6608)
* TP-29170 | try catch for checking which image is causing the crash * TP-22849 | Card will be visible when home page data comes
This commit is contained in:
committed by
GitHub Enterprise
parent
0a4709228b
commit
bdbe3cee00
@@ -389,6 +389,7 @@ class HomeFragment : PaymentBaseFragment(), WidgetCallback, PlayStoreActionListe
|
||||
binding.shimmerLayout.stopShimmer()
|
||||
binding.shimmerLayout.visibility = View.GONE
|
||||
binding.header.root.visibility = View.VISIBLE
|
||||
toShowWhatsNewTag()
|
||||
if (PreferenceManager.getBooleanPreference(SHOW_SCROLL_FEEDBACK_IN_HOME_SCREEN) && !viewModel.isUiTronScreenEnabled()) {
|
||||
binding.ivScrollFeedback.visibility = VISIBLE
|
||||
binding.ivScrollFeedback.startAnimation(
|
||||
@@ -474,6 +475,7 @@ class HomeFragment : PaymentBaseFragment(), WidgetCallback, PlayStoreActionListe
|
||||
binding.composeView.visibility = GONE
|
||||
}
|
||||
binding.header.root.visibility = VISIBLE
|
||||
toShowWhatsNewTag()
|
||||
}
|
||||
paymentVM.mediumsSuccessResponse.observeNonNull(viewLifecycleOwner) {
|
||||
val eventTracker = NaviAnalytics.naviAnalytics.Whatsapp()
|
||||
@@ -1060,7 +1062,6 @@ class HomeFragment : PaymentBaseFragment(), WidgetCallback, PlayStoreActionListe
|
||||
var statusId = true
|
||||
val total = viewModel.appStoriesData.value?.total ?: 0
|
||||
val viewed = viewModel.appStoriesData.value?.viewed ?: 0
|
||||
toShowWhatsNewTag()
|
||||
if (total - viewed == 0) {
|
||||
context?.let {
|
||||
binding.header.progressIcon.setLottieFile(
|
||||
|
||||
Reference in New Issue
Block a user