TP-34634 | make right condition for pre load (#7749)
This commit is contained in:
@@ -428,7 +428,7 @@ class SplashActivityCompose : BaseActivity(), ReferralListener {
|
||||
}
|
||||
|
||||
private fun redirectToNextScreen() {
|
||||
if (intent.data == null && intent.getStringExtra(DEEPLINK) == CHAT_ACTIVITY) {
|
||||
if (intent.data == null && (intent.getStringExtra(DEEPLINK) == CHAT_ACTIVITY).not()) {
|
||||
fetchConfigData()
|
||||
}
|
||||
}
|
||||
@@ -663,7 +663,10 @@ class SplashActivityCompose : BaseActivity(), ReferralListener {
|
||||
val composition by
|
||||
rememberLottieComposition(spec = LottieCompositionSpec.RawRes(R.raw.splash))
|
||||
Column(
|
||||
modifier = Modifier.fillMaxHeight().fillMaxWidth().background(Color.White),
|
||||
modifier = Modifier
|
||||
.fillMaxHeight()
|
||||
.fillMaxWidth()
|
||||
.background(Color.White),
|
||||
verticalArrangement = Arrangement.Center
|
||||
) {
|
||||
LottieAnimation(composition = composition, renderMode = RenderMode.HARDWARE)
|
||||
|
||||
@@ -244,7 +244,6 @@ class ConfigVM @Inject constructor(private val homeRepoHelper: GlobalRepo) : Bas
|
||||
)
|
||||
homeRepoHelper.fetchDashboard()
|
||||
homeRepoHelper.fetchInvestmentTab()
|
||||
homeRepoHelper.fetchProfile()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user