android / codelab-android-workmanager

Apache License 2.0
549 stars 239 forks source link

A bit Java code in "Background Work with WorkManager - Kotlin" codelab #115

Closed petrukhin closed 5 years ago

petrukhin commented 5 years ago

The issue relates to this page.

Code block below:

Bitmap picture = BitmapFactory.decodeResource(
    appContext.getResources(),
    R.drawable.test);

should be replaced to

 val picture = BitmapFactory.decodeResource(
                    appContext.resources,
                    R.drawable.test)
pfmaggi commented 5 years ago

Thanks for reporting this, I've corrected the document.