You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Stabilize conditional toast with ActivityManager
This change stabilizes the logic for showing the 'The AI stopped Screen Operator' toast.
The previous implementation, which relied on lifecycle callbacks in `MainActivity`, was prone to timing issues. This commit refactors the implementation to use `ActivityManager` directly within the `BroadcastReceiver` in `PhotoReasoningViewModel`.
This ensures that the foreground check is performed at the exact moment the AI response is received, providing a reliable and stable solution.
The changes in `MainActivity.kt` have been reverted.
0 commit comments