Skip to content

Commit

Permalink
refactor #605 Add suppression for deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
toastkidjp committed Aug 19, 2020
1 parent 27c0898 commit f230246
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ internal class Adapter(private val context: Context, private val parent: View)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
packageInfo.longVersionCode
} else {
@Suppress("DEPRECATION")
packageInfo.versionCode.toLong()
}

Expand Down

0 comments on commit f230246

Please sign in to comment.