UI not updating after API Call
Hi All,
I’m facing an issue in my Android app where the UI is not updating even though the API call returns the correct data. I’m using ViewModel + LiveData. The LiveData value updates (I confirmed in logs), but the Fragment UI doesn’t refresh unless I rotate the device or navigate back and forth. I already tried observe (viewLifecycleOwner) and ensured I’m not using the Activity as the lifecycle owner. Still no change.
Has anyone faced this before? Any idea what might be causing the observer not to trigger?
I’m facing an issue in my Android app where the UI is not updating even though the API call returns the correct data. I’m using ViewModel + LiveData. The LiveData value updates (I confirmed in logs), but the Fragment UI doesn’t refresh unless I rotate the device or navigate back and forth. I already tried observe (viewLifecycleOwner) and ensured I’m not using the Activity as the lifecycle owner. Still no change.
Has anyone faced this before? Any idea what might be causing the observer not to trigger?
Return to “Questions about Android”
Who is online
Users browsing this forum: No registered users and 0 guests