diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index b9aea8a01..6b78431fa 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -1,5 +1,5 @@ - + @@ -1141,7 +1141,7 @@ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> diff --git a/app/src/main/java/app/pachli/components/notifications/NotificationHelper.kt b/app/src/main/java/app/pachli/components/notifications/NotificationHelper.kt index e033432e2..091651795 100644 --- a/app/src/main/java/app/pachli/components/notifications/NotificationHelper.kt +++ b/app/src/main/java/app/pachli/components/notifications/NotificationHelper.kt @@ -570,13 +570,13 @@ fun enablePullNotifications(context: Context) { // practice that may not be soon enough, so create and enqueue an expedited one-time // request to get new notifications immediately. Timber.d("Enqueing immediate notification worker") - val fetchNotifications: WorkRequest = OneTimeWorkRequest.Builder(NotificationWorker::class.java) + val fetchNotifications: WorkRequest = OneTimeWorkRequest.Builder(NotificationWorker::class) .setExpedited(OutOfQuotaPolicy.DROP_WORK_REQUEST) .setConstraints(Constraints.Builder().setRequiredNetworkType(NetworkType.CONNECTED).build()) .build() workManager.enqueue(fetchNotifications) val workRequest: WorkRequest = PeriodicWorkRequest.Builder( - NotificationWorker::class.java, + NotificationWorker::class, PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS, TimeUnit.MILLISECONDS, PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS, diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2a2ea6fa4..cf23badfd 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -25,7 +25,7 @@ androidx-test-core-ktx = "1.6.1" androidx-transition = "1.5.1" androidx-viewpager2 = "1.1.0" androidx-webkit = "1.12.1" -androidx-work = "2.9.1" +androidx-work = "2.10.0" androidx-room = "2.6.1" app-update = "2.1.0" apollographql = "3.8.5"