Android Studio – Observer is called twice at the same time in Kotlin
When the button is clicked, data is received from the API, after which the Observer is fired, however, even with removeObservers, it is called twice. Without removeObservers it triggers more than 2 times. MainActivity class MainActivity : ComponentActivity() { override…