mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-01 05:55:18 +00:00
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();
|
||
|
}
|
||
|
}
|