-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix synchronized contacts not appearing in some contact apps #7487
Conversation
c763e8c
to
def698a
Compare
* It is used to mark Tuta accounts as syncable as a fix for #6568 */ | ||
class StubSyncService : Service() { | ||
override fun onCreate() { | ||
synchronized(syncAdapterLock) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's never overwritten again wouldn't it be enough to either make it lazy
or mark it as volatile?
@@ -249,6 +252,10 @@ class AndroidMobileContactsFacade(private val activity: MainActivity) : MobileCo | |||
activity.getPermission(Manifest.permission.WRITE_CONTACTS) | |||
} | |||
|
|||
private suspend fun checkSyncPermission() { | |||
activity.getPermission(Manifest.permission.WRITE_SYNC_SETTINGS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is user prompted for this or is it automatically given?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my testing, it is automatically given.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it does not hurt to check although for the same target API it shouldn't change.
Looks good, one mistery is solved! Maybe one day we can also do a "real" sync adapter |
0f18ec1
to
e2e20fd
Compare
Certain contact apps require the account to be syncable. In order to do this, we implement a stubbed sync service and adapter which does nothing and ask Android not to call it. Preexisting installations of the app will need to turn contact synchronization off and on again to receive this fix. Closes #6568. Co-authored-by: paw <[email protected]>
e2e20fd
to
47f031a
Compare
Certain contact apps require the account to be syncable. In order to do this, we implement a stubbed sync service and adapter which does nothing and ask Android not to call it. Preexisting installations of the app will need to turn contact synchronization off and on again to receive this fix.
Closes #6568.