mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 10:47:46 +00:00
d1940fe0f9
// FREEBIE
27 lines
620 B
Java
27 lines
620 B
Java
package org.thoughtcrime.securesms.service;
|
|
|
|
import android.app.Service;
|
|
import android.content.Intent;
|
|
import android.os.IBinder;
|
|
import android.support.annotation.Nullable;
|
|
|
|
import org.thoughtcrime.securesms.contacts.ContactsSyncAdapter;
|
|
|
|
public class ContactsSyncAdapterService extends Service {
|
|
|
|
private static ContactsSyncAdapter syncAdapter;
|
|
|
|
@Override
|
|
public synchronized void onCreate() {
|
|
if (syncAdapter == null) {
|
|
syncAdapter = new ContactsSyncAdapter(this, true);
|
|
}
|
|
}
|
|
|
|
@Nullable
|
|
@Override
|
|
public IBinder onBind(Intent intent) {
|
|
return syncAdapter.getSyncAdapterBinder();
|
|
}
|
|
}
|