Support sync adapter pending sync indication on Android 14+ (#1676)
* Add AccountSettingsMigration21 to cancel pending address book syncs * Add application context annotation * Add log statement * Increase account settings current version * Add and update kdoc * Call cancelSync via integration * Optimize imports * Update kdoc * Updating log statement * Also cancel calendar syncs * Don't infer authority from account type * Update kdoc * Cancel only on Android 14+ * Cancel for all authorities and update kdoc * Use cancelSync directly in migration * Enable forever pending sync workaround by canceling sync adapter framework syncs on Android 14+ * Stop always returning false for pending sync state of sync adapter framework * Cancel by request and empty bundle * Cancel syncs for calendar, tasks, and contacts separately * Minor edits to log statement and kdoc * Add migration test; Update migration * Log all extras instead of just upload flag * Use lazy on syncFrameworkIntegration injection * Multiple changes - don't cancel address book accounts of all main accounts - merge loops * Add authority to log statement * Replace complex state verification logic by status changed flow * Cancel syncs account wide across all authorities * Add some delay to allow dummy sync requests to be created * Reduce wait until pending * Drop Thread.sleep() * Use a callback flow instead of mutable state flow * Shorten first true filter * Shorten remaining first true filter
Loading
Please register or sign in to comment