فهرست منبع

Unnecessary code revert.

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
A117870935 2 سال پیش
والد
کامیت
a56e62a49c
1فایلهای تغییر یافته به همراه0 افزوده شده و 9 حذف شده
  1. 0 9
      app/src/main/java/com/nextcloud/client/jobs/CalendarBackupWork.kt

+ 0 - 9
app/src/main/java/com/nextcloud/client/jobs/CalendarBackupWork.kt

@@ -3,10 +3,8 @@
  * Nextcloud Android client application
  *
  * @author Tobias Kaminsky
- * @author TSI-mc
  * Copyright (C) 2021 Tobias Kaminsky
  * Copyright (C) 2021 Nextcloud GmbH
- * Copyright (C) 2023 TSI-mc
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -31,7 +29,6 @@ import androidx.work.Worker
 import androidx.work.WorkerParameters
 import com.nextcloud.client.account.UserAccountManager
 import com.nextcloud.client.preferences.AppPreferences
-import com.owncloud.android.R
 import com.owncloud.android.lib.common.utils.Log_OC
 import third_parties.sufficientlysecure.AndroidCalendar
 import third_parties.sufficientlysecure.SaveCalendar
@@ -53,12 +50,6 @@ class CalendarBackupWork(
     }
 
     override fun doWork(): Result {
-        val showCalendarBackup = applicationContext.resources.getBoolean(R.bool.show_calendar_backup)
-        if (!showCalendarBackup) {
-            Log_OC.d(TAG, "Calendar backup is disabled.")
-            return Result.success()
-        }
-
         val accountName = inputData.getString(ACCOUNT) ?: ""
         val optionalUser = accountManager.getUser(accountName)
         if (!optionalUser.isPresent || TextUtils.isEmpty(accountName)) { // no account provided