public AbstractThreadedSyncAdapter getSyncAdapter(Context context, boolean autoInitialize) { return new AbstractThreadedSyncAdapter(context, autoInitialize){ @Override public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) { SyncService.this.onPerformSync(account, extras, authority, provider, syncResult); } }; }
public void inject(AbstractThreadedSyncAdapter fragment) { getObjectGraph().inject(fragment); }