NTP-44195: Optimising for recomputations | PL web (#15406)
Co-authored-by: Sayed Owais Ali <sayed.owais@navi.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user