2010-07-13 17:49:28 -04:00
|
|
|
package com.fsck.k9.helper;
|
|
|
|
|
|
|
|
import android.content.ContentResolver;
|
|
|
|
import android.content.Context;
|
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public class AutoSyncSdk5 implements IAutoSync {
|
|
|
|
public void initialize(Context context) throws NoSuchMethodException {
|
2010-07-13 17:49:28 -04:00
|
|
|
// Nothing to do here
|
|
|
|
}
|
|
|
|
|
2011-02-06 17:09:48 -05:00
|
|
|
public boolean getMasterSyncAutomatically() {
|
2010-07-13 17:49:28 -04:00
|
|
|
/*
|
|
|
|
* SDK 2.0/API 5 introduced an official method to query the auto-sync
|
|
|
|
* state.
|
|
|
|
*/
|
|
|
|
return ContentResolver.getMasterSyncAutomatically();
|
|
|
|
}
|
|
|
|
}
|