Skip to content

Dev#209

Merged
alexch33 merged 4 commits intomasterfrom
dev
Feb 1, 2026
Merged

Dev#209
alexch33 merged 4 commits intomasterfrom
dev

Conversation

@alexch33
Copy link
Owner

@alexch33 alexch33 commented Feb 1, 2026

No description provided.

This commit addresses potential memory leaks in `SettingsFragment` by properly managing `OnPropertyChangedCallback` listeners.
This commit refactors the management of `OnPropertyChangedCallback` instances to prevent potential memory leaks. Anonymous callbacks have been replaced with class properties, which are now correctly added in `start()` or `onCreateView()` and removed in corresponding lifecycle methods like `stop()` or `onDestroyView()`.

Key changes:
- Replaced anonymous `OnPropertyChangedCallback` implementations with property-based callbacks across multiple fragments and ViewModels (`BrowserFragment`, `BaseWebTabFragment`, `ProxiesFragment`, `MainActivity`, `VideoDetectionTabViewModel`, `WebTabViewModel`, `GlobalVideoDetectionModel`).
- Ensured callbacks are removed in the appropriate lifecycle methods (`onDestroyView`, `stop`) to avoid retaining references to destroyed views or components.
- In `VideoInfoAdapter`, a `TextWatcher` is now managed to prevent it from being added multiple times.
@alexch33 alexch33 merged commit 2debb0b into master Feb 1, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant