mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 03:00:57 +00:00
Wrap all androidInterface native method calls in try-catch blocks to prevent app crashes when Java exceptions are raised during method invocation. Users are now notified via snackbar when service start fails, while update/stop failures are logged silently. Changes: - Add _safeNativeCall helper to TypeScript effects for DRY error handling - Add safeCall inline helper to Kotlin JavaScriptInterface - Wrap focus mode and tracking service calls with error handling - Show user-friendly error notification on service start failures - Add unit tests for error handling logic Fixes #5819 |
||
|---|---|---|
| .. | ||
| androidTest/java/com/superproductivity/superproductivity | ||
| main | ||
| test/java/com/superproductivity/superproductivity | ||