android / codelab-while-in-use-location

Codelab:
https://github.com/googlecodelabs/while-in-use-location
Apache License 2.0
82 stars 51 forks source link

Remove mentions of Q being a prerelease #3

Closed yrezgui closed 4 years ago

yrezgui commented 4 years ago

Android 10 (Q) has been released since the first publication of this codelab. Mentions of this version being a prerelease should be removed.

https://github.com/googlecodelabs/while-in-use-location/blob/7dd0fcb112fe3fe8413eaee53c52718d5bd06c76/base/src/main/java/com/example/android/whileinuselocation/MainActivity.kt#L87-L92

Also use this code instead:

private val runningQOrLater =
        android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.Q