determine Location Change Action
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
current Market Domain
The market domain currently loaded in the WebView.
new Country Code
The country code received from the location callback (case-insensitive).
is Page Loading
Whether the WebView is currently performing a page load.