NTP-44195: Optimising for recomputations | PL web (#15406)

Co-authored-by: Sayed Owais Ali <sayed.owais@navi.com>
This commit is contained in:
Raaj Gopal
2025-03-17 15:43:01 +05:30
committed by GitHub
parent e9b4429934
commit 82665dfbfe

View File

@@ -71,6 +71,7 @@ import com.naviapp.webredirection.presentation.viewModel.WebPlatformIdentifier.C
import com.naviapp.webredirection.presentation.viewModel.WebRedirectionVM
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.launch
/**
@@ -157,6 +158,7 @@ class WebRedirectionTransparentActivity : BaseActivity() {
webPlatformIdentifier ->
webPageUrl to webPlatformIdentifier
}
.distinctUntilChanged()
.collect { (webPageUrl, webPlatformIdentifier) ->
webPageUrl?.let { url ->
if (webPlatformIdentifier == ChromeTab) {