Permalink
Browse files

Replace deprecated Worker constructor

  • Loading branch information...
ianhanniballake committed Sep 25, 2018
1 parent 33a373f commit f46dc1a0d2a9676a60f170819c850653c7011089
@@ -16,19 +16,24 @@
package com.example.muzei.unsplash
import android.content.Context
import android.util.Log
import androidx.core.net.toUri
import androidx.work.Constraints
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.example.muzei.unsplash.BuildConfig.UNSPLASH_AUTHORITY
import com.google.android.apps.muzei.api.provider.Artwork
import com.google.android.apps.muzei.api.provider.ProviderContract
import java.io.IOException
class UnsplashExampleWorker : Worker() {
class UnsplashExampleWorker(
context: Context,
workerParams: WorkerParameters
) : Worker(context, workerParams) {
companion object {
private const val TAG = "UnsplashExample"

0 comments on commit f46dc1a

Please sign in to comment.