From 3c74cb1575d6029c1454d63e2f87ffe7b450a61a Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 18 Aug 2019 15:26:26 +0100 Subject: [PATCH] Optimise imports. --- .../syncadapter/AddressBooksSyncAdapterService.kt | 4 ---- .../syncadapter/syncadapter/CalendarsSyncAdapterService.kt | 5 ----- .../syncadapter/syncadapter/ContactsSyncAdapterService.kt | 3 --- .../syncadapter/syncadapter/TasksSyncAdapterService.kt | 4 ---- .../com/etesync/syncadapter/ui/importlocal/ImportFragment.kt | 1 - .../etesync/syncadapter/ui/setup/BaseConfigurationFinder.kt | 1 - 6 files changed, 18 deletions(-) diff --git a/app/src/main/java/com/etesync/syncadapter/syncadapter/AddressBooksSyncAdapterService.kt b/app/src/main/java/com/etesync/syncadapter/syncadapter/AddressBooksSyncAdapterService.kt index b32cdf80..cdb9d723 100644 --- a/app/src/main/java/com/etesync/syncadapter/syncadapter/AddressBooksSyncAdapterService.kt +++ b/app/src/main/java/com/etesync/syncadapter/syncadapter/AddressBooksSyncAdapterService.kt @@ -12,22 +12,18 @@ import android.accounts.AccountManager import android.accounts.AuthenticatorException import android.accounts.OperationCanceledException import android.content.* -import android.database.sqlite.SQLiteException import android.os.Bundle import android.provider.ContactsContract import at.bitfire.vcard4android.ContactsStorageException import com.etesync.syncadapter.AccountSettings import com.etesync.syncadapter.App import com.etesync.syncadapter.Constants -import com.etesync.syncadapter.Constants.KEY_ACCOUNT import com.etesync.syncadapter.R -import com.etesync.syncadapter.journalmanager.Exceptions import com.etesync.syncadapter.log.Logger import com.etesync.syncadapter.model.CollectionInfo import com.etesync.syncadapter.model.JournalEntity import com.etesync.syncadapter.model.JournalModel import com.etesync.syncadapter.resource.LocalAddressBook -import com.etesync.syncadapter.ui.DebugInfoActivity import java.io.IOException import java.util.* import java.util.logging.Level diff --git a/app/src/main/java/com/etesync/syncadapter/syncadapter/CalendarsSyncAdapterService.kt b/app/src/main/java/com/etesync/syncadapter/syncadapter/CalendarsSyncAdapterService.kt index c8804055..84efe374 100644 --- a/app/src/main/java/com/etesync/syncadapter/syncadapter/CalendarsSyncAdapterService.kt +++ b/app/src/main/java/com/etesync/syncadapter/syncadapter/CalendarsSyncAdapterService.kt @@ -9,7 +9,6 @@ package com.etesync.syncadapter.syncadapter import android.accounts.Account import android.content.* -import android.database.sqlite.SQLiteException import android.os.Bundle import android.provider.CalendarContract import at.bitfire.ical4android.AndroidCalendar @@ -17,18 +16,14 @@ import at.bitfire.ical4android.CalendarStorageException import com.etesync.syncadapter.AccountSettings import com.etesync.syncadapter.App import com.etesync.syncadapter.Constants -import com.etesync.syncadapter.Constants.KEY_ACCOUNT import com.etesync.syncadapter.R -import com.etesync.syncadapter.journalmanager.Exceptions import com.etesync.syncadapter.log.Logger import com.etesync.syncadapter.model.CollectionInfo import com.etesync.syncadapter.model.JournalEntity import com.etesync.syncadapter.model.JournalModel import com.etesync.syncadapter.resource.LocalCalendar -import com.etesync.syncadapter.ui.DebugInfoActivity import okhttp3.HttpUrl import java.util.* -import java.util.logging.Level class CalendarsSyncAdapterService : SyncAdapterService() { override fun syncAdapter(): AbstractThreadedSyncAdapter { diff --git a/app/src/main/java/com/etesync/syncadapter/syncadapter/ContactsSyncAdapterService.kt b/app/src/main/java/com/etesync/syncadapter/syncadapter/ContactsSyncAdapterService.kt index a27595f1..7f0467e0 100644 --- a/app/src/main/java/com/etesync/syncadapter/syncadapter/ContactsSyncAdapterService.kt +++ b/app/src/main/java/com/etesync/syncadapter/syncadapter/ContactsSyncAdapterService.kt @@ -13,13 +13,10 @@ import android.os.Bundle import at.bitfire.vcard4android.ContactsStorageException import com.etesync.syncadapter.AccountSettings import com.etesync.syncadapter.Constants -import com.etesync.syncadapter.Constants.KEY_ACCOUNT import com.etesync.syncadapter.InvalidAccountException import com.etesync.syncadapter.R -import com.etesync.syncadapter.journalmanager.Exceptions import com.etesync.syncadapter.log.Logger import com.etesync.syncadapter.resource.LocalAddressBook -import com.etesync.syncadapter.ui.DebugInfoActivity import okhttp3.HttpUrl class ContactsSyncAdapterService : SyncAdapterService() { diff --git a/app/src/main/java/com/etesync/syncadapter/syncadapter/TasksSyncAdapterService.kt b/app/src/main/java/com/etesync/syncadapter/syncadapter/TasksSyncAdapterService.kt index 07fba9c1..c72790fa 100644 --- a/app/src/main/java/com/etesync/syncadapter/syncadapter/TasksSyncAdapterService.kt +++ b/app/src/main/java/com/etesync/syncadapter/syncadapter/TasksSyncAdapterService.kt @@ -13,7 +13,6 @@ import android.content.ContentProviderClient import android.content.ContentResolver import android.content.Context import android.content.SyncResult -import android.database.sqlite.SQLiteException import android.os.Build import android.os.Bundle import at.bitfire.ical4android.AndroidTaskList @@ -22,17 +21,14 @@ import com.etesync.syncadapter.AccountSettings import com.etesync.syncadapter.App import com.etesync.syncadapter.Constants import com.etesync.syncadapter.R -import com.etesync.syncadapter.journalmanager.Exceptions import com.etesync.syncadapter.log.Logger import com.etesync.syncadapter.model.CollectionInfo import com.etesync.syncadapter.model.JournalEntity import com.etesync.syncadapter.model.JournalModel import com.etesync.syncadapter.resource.LocalTaskList -import com.etesync.syncadapter.ui.DebugInfoActivity import okhttp3.HttpUrl import org.dmfs.tasks.contract.TaskContract import java.util.* -import java.util.logging.Level /** * Synchronization manager for CalDAV collections; handles tasks ({@code VTODO}). diff --git a/app/src/main/java/com/etesync/syncadapter/ui/importlocal/ImportFragment.kt b/app/src/main/java/com/etesync/syncadapter/ui/importlocal/ImportFragment.kt index 63a58649..717602c8 100644 --- a/app/src/main/java/com/etesync/syncadapter/ui/importlocal/ImportFragment.kt +++ b/app/src/main/java/com/etesync/syncadapter/ui/importlocal/ImportFragment.kt @@ -31,7 +31,6 @@ import java.io.FileNotFoundException import java.io.IOException import java.io.InputStream import java.io.InputStreamReader -import com.etesync.syncadapter.resource.LocalEvent class ImportFragment : DialogFragment() { diff --git a/app/src/main/java/com/etesync/syncadapter/ui/setup/BaseConfigurationFinder.kt b/app/src/main/java/com/etesync/syncadapter/ui/setup/BaseConfigurationFinder.kt index 4b9950f3..5022d2c1 100644 --- a/app/src/main/java/com/etesync/syncadapter/ui/setup/BaseConfigurationFinder.kt +++ b/app/src/main/java/com/etesync/syncadapter/ui/setup/BaseConfigurationFinder.kt @@ -13,7 +13,6 @@ import com.etesync.syncadapter.journalmanager.Crypto import com.etesync.syncadapter.journalmanager.Exceptions import com.etesync.syncadapter.journalmanager.JournalAuthenticator import com.etesync.syncadapter.log.Logger -import com.etesync.syncadapter.log.StringHandler import com.etesync.syncadapter.model.CollectionInfo import okhttp3.HttpUrl import okhttp3.OkHttpClient