TP-66471 | fix name issue (#10868)

This commit is contained in:
Saurabh Chaudhary
2024-05-16 15:50:15 +05:30
committed by GitHub
parent 35da18ce56
commit 0745266bc5

View File

@@ -852,7 +852,10 @@ class HomeLoanFormScreenFragment :
}
}
}
Handler(Looper.getMainLooper()).post { formAdapter?.notifyItemChanged(itemIndexToUpdate) }
if (itemIndexToUpdate > 0)
Handler(Looper.getMainLooper()).post {
formAdapter?.notifyItemChanged(itemIndexToUpdate)
}
var widgetIndex = -1
viewModel.formGetResponse.value?.content?.widgets?.forEach {
@@ -868,7 +871,7 @@ class HomeLoanFormScreenFragment :
}
}
}
if (widgetIndex != -1)
if (widgetIndex > 0)
Handler(Looper.getMainLooper()).post { formAdapter?.notifyItemChanged(widgetIndex) }
}