This PR introduces a safeguard in the app’s UI update logic to prevent IllegalStateException by ensuring that the ConnectFragment is attached to a context before performing any layout changes. It refines the condition checks within the when statement to include a context check alongside the existing isAdded check, thus improving stability during state transitions.
This PR introduces a safeguard in the app’s UI update logic to prevent
IllegalStateException
by ensuring that theConnectFragment
is attached to a context before performing any layout changes. It refines the condition checks within the when statement to include a context check alongside the existingisAdded
check, thus improving stability during state transitions.Tested on Pixel 8 API 34.
Fixes #907