mirror of
https://github.com/moparisthebest/k-9
synced 2024-08-13 17:03:48 -04:00
014b6c19c3
Fixes issue 1982
22 lines
509 B
Java
22 lines
509 B
Java
package com.fsck.k9.helper;
|
|
|
|
import android.content.ContentResolver;
|
|
import android.content.Context;
|
|
|
|
public class AutoSyncSdk5 implements IAutoSync
|
|
{
|
|
public void initialize(Context context) throws NoSuchMethodException
|
|
{
|
|
// Nothing to do here
|
|
}
|
|
|
|
public boolean getMasterSyncAutomatically()
|
|
{
|
|
/*
|
|
* SDK 2.0/API 5 introduced an official method to query the auto-sync
|
|
* state.
|
|
*/
|
|
return ContentResolver.getMasterSyncAutomatically();
|
|
}
|
|
}
|