diff --git a/app/src/main/java/at/bitfire/davdroid/App.kt b/app/src/main/java/at/bitfire/davdroid/App.kt index c6aa1d245e1ad90f5af1b33bc968118986f2bb49..690bbbc75c36eef41164836ca0eae2ede1c072f6 100644 --- a/app/src/main/java/at/bitfire/davdroid/App.kt +++ b/app/src/main/java/at/bitfire/davdroid/App.kt @@ -84,9 +84,6 @@ class App: Application(), Thread.UncaughtExceptionHandler { // check whether a tasks app is currently installed SyncUtils.updateTaskSync(this) - // create/update app shortcuts - UiUtils.updateShortcuts(this) - // check/repair sync intervals AccountSettings.repairSyncIntervals(this) } diff --git a/app/src/main/java/at/bitfire/davdroid/ui/AccountsActivity.kt b/app/src/main/java/at/bitfire/davdroid/ui/AccountsActivity.kt index a38d1d0ad736994ff8d4d8f4656a2fe3717059c5..072e5dde4d902942d205afacebb5322cf41ed0da 100644 --- a/app/src/main/java/at/bitfire/davdroid/ui/AccountsActivity.kt +++ b/app/src/main/java/at/bitfire/davdroid/ui/AccountsActivity.kt @@ -10,8 +10,6 @@ import android.content.ContentResolver import android.content.Context import android.content.Intent import android.content.SyncStatusObserver -import android.content.pm.ShortcutManager -import android.os.Build import android.os.Bundle import android.view.MenuItem import androidx.activity.viewModels @@ -136,9 +134,6 @@ class AccountsActivity: AppCompatActivity(), NavigationView.OnNavigationItemSele AccountManager.get(this).getAccountsByType(getString(R.string.account_type)) fun syncAllAccounts(item: MenuItem? = null) { - if (Build.VERSION.SDK_INT >= 25) - getSystemService()?.reportShortcutUsed(UiUtils.SHORTCUT_SYNC_ALL) - val accounts = allAccounts() for (account in accounts) DavUtils.requestSync(this, account)