mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-15 15:02:49 +01:00
chore: Ktlint
Signed-off-by: KaiserBh <kaiserbh@proton.me>
This commit is contained in:
parent
a13e731d1c
commit
d1a55ed7fe
@ -188,12 +188,12 @@ class GoogleDriveSyncService(context: Context, json: Json, syncPreferences: Sync
|
|||||||
// Search for the existing file by name in the appData folder
|
// Search for the existing file by name in the appData folder
|
||||||
val query = "mimeType='application/gzip' and name = '$remoteFileName'"
|
val query = "mimeType='application/gzip' and name = '$remoteFileName'"
|
||||||
val fileList = drive.files()
|
val fileList = drive.files()
|
||||||
.list()
|
.list()
|
||||||
.setSpaces("appDataFolder")
|
.setSpaces("appDataFolder")
|
||||||
.setQ(query)
|
.setQ(query)
|
||||||
.setFields("files(id, name, createdTime)")
|
.setFields("files(id, name, createdTime)")
|
||||||
.execute()
|
.execute()
|
||||||
.files
|
.files
|
||||||
Log.d("GoogleDrive", "AppData folder file list: $fileList")
|
Log.d("GoogleDrive", "AppData folder file list: $fileList")
|
||||||
|
|
||||||
return fileList
|
return fileList
|
||||||
@ -277,7 +277,9 @@ class GoogleDriveSyncService(context: Context, json: Json, syncPreferences: Sync
|
|||||||
} else {
|
} else {
|
||||||
for (file in appDataFileList) {
|
for (file in appDataFileList) {
|
||||||
drive.files().delete(file.id).execute()
|
drive.files().delete(file.id).execute()
|
||||||
logcat(LogPriority.DEBUG) { "Deleted sync data file in appData folder of Google Drive with file ID: ${file.id}" }
|
logcat(
|
||||||
|
LogPriority.DEBUG,
|
||||||
|
) { "Deleted sync data file in appData folder of Google Drive with file ID: ${file.id}" }
|
||||||
}
|
}
|
||||||
DeleteSyncDataStatus.SUCCESS
|
DeleteSyncDataStatus.SUCCESS
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user