determineLocationChangeAction

fun determineLocationChangeAction(currentMarketDomain: TMMarketDomain, newCountryCode: String, isPageLoading: Boolean): LocationChangeAction

Pure decision function that determines which action the location callback should take.

Removing the previous || tmMarketDomain.isInternational() guard ensures that international markets (e.g. MX) no longer trigger an unconditional full reload on every location update — only an actual market change does.

Parameters

currentMarketDomain

The market domain currently loaded in the WebView.

newCountryCode

The country code received from the location callback (case-insensitive).

isPageLoading

Whether the WebView is currently performing a page load.