diff --git a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt index 0a36e5d14..381f1abe9 100644 --- a/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/more/settings/screen/SettingsDataScreen.kt @@ -4,7 +4,6 @@ import android.content.Context import android.content.Intent import android.net.Uri import android.os.Environment -import android.text.format.DateUtils import android.text.format.Formatter import android.widget.Toast import androidx.activity.compose.rememberLauncherForActivityResult @@ -516,7 +515,9 @@ private fun getAutomaticSyncGroup(syncPreferences: SyncPreferences): Preference. true }, ), - Preference.PreferenceItem.InfoPreference(stringResource(R.string.last_synchronization, relativeTimeSpanString(lastSync))), + Preference.PreferenceItem.InfoPreference( + stringResource(R.string.last_synchronization, relativeTimeSpanString(lastSync)), + ), ), ) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt index d86c22c85..dd629cd14 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/sync/SyncManager.kt @@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.data.sync import android.content.Context import android.net.Uri -import eu.kanade.tachiyomi.R import eu.kanade.tachiyomi.data.backup.BackupCreateFlags import eu.kanade.tachiyomi.data.backup.BackupCreator import eu.kanade.tachiyomi.data.backup.BackupNotifier diff --git a/domain/src/main/java/tachiyomi/domain/sync/SyncPreferences.kt b/domain/src/main/java/tachiyomi/domain/sync/SyncPreferences.kt index 5717b6ba1..789d01c7a 100644 --- a/domain/src/main/java/tachiyomi/domain/sync/SyncPreferences.kt +++ b/domain/src/main/java/tachiyomi/domain/sync/SyncPreferences.kt @@ -1,7 +1,7 @@ package tachiyomi.domain.sync -import tachiyomi.core.preference.PreferenceStore import tachiyomi.core.preference.Preference +import tachiyomi.core.preference.PreferenceStore class SyncPreferences( private val preferenceStore: PreferenceStore, @@ -19,7 +19,10 @@ class SyncPreferences( fun syncService() = preferenceStore.getInt("sync_service", 0) - private fun googleDriveAccessToken() = preferenceStore.getString(Preference.appStateKey("google_drive_access_token"), "") + private fun googleDriveAccessToken() = preferenceStore.getString( + Preference.appStateKey("google_drive_access_token"), + "", + ) fun setGoogleDriveAccessToken(accessToken: String) { googleDriveAccessToken().set(accessToken) @@ -27,7 +30,10 @@ class SyncPreferences( fun getGoogleDriveAccessToken() = googleDriveAccessToken().get() - private fun googleDriveRefreshToken() = preferenceStore.getString(Preference.appStateKey("google_drive_refresh_token"), "") + private fun googleDriveRefreshToken() = preferenceStore.getString( + Preference.appStateKey("google_drive_refresh_token"), + "", + ) fun setGoogleDriveRefreshToken(refreshToken: String) { googleDriveRefreshToken().set(refreshToken)