Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor network availability observer in MainActivity
This commit moves the observer for network availability from the `onCreate` method to the `onStart` method in the MainActivity. The observer is also removed when the activity stops. This ensures the observer only runs when the activity is in the foreground, improving the app's performance and user experience.
- Loading branch information