Commit 79734cfe authored by Konstantin Tskhovrebov's avatar Konstantin Tskhovrebov 🤖

Update target SDK.

parent 2c569d83
......@@ -5,14 +5,14 @@ apply plugin: 'kotlin-android-extensions'
apply from: '../ci.gradle'
android {
compileSdkVersion 27
compileSdkVersion 28
buildToolsVersion '28.0.2'
defaultConfig {
applicationId "ru.terrakok.gitlabclient"
applicationId "com.gitlab.terrakok.gitfox"
minSdkVersion 19
targetSdkVersion 27
targetSdkVersion 28
versionName "1.0"
versionCode getBuildNumber()
......@@ -53,7 +53,7 @@ android {
}
ext {
supportLibraryVersion = "27.1.1"
supportLibraryVersion = "28.0.0-rc02"
moxyVersion = "1.4.6"
toothpickVersion = "1.0.6"
retrofitVersion = "2.2.0"
......
......@@ -23,7 +23,7 @@ class SimpleDividerDecorator(
ContextCompat.getColor(context, R.color.divider)
)
override fun getItemOffsets(outRect: Rect, view: View, parent: RecyclerView, state: RecyclerView.State?) {
override fun getItemOffsets(outRect: Rect, view: View, parent: RecyclerView, state: RecyclerView.State) {
super.getItemOffsets(outRect, view, parent, state)
if (parent.getChildAdapterPosition(view) == 0) return
......@@ -31,12 +31,12 @@ class SimpleDividerDecorator(
outRect.top = dividerSizePx
}
override fun onDraw(canvas: Canvas, parent: RecyclerView, state: RecyclerView.State?) {
override fun onDraw(canvas: Canvas, parent: RecyclerView, state: RecyclerView.State) {
val dividerLeft = parent.paddingLeft
val dividerRight = parent.width - parent.paddingRight
val childCount = parent.childCount
for (i in 0..childCount - 1) {
for (i in 0 until childCount) {
val child = parent.getChildAt(i)
val params = child.layoutParams as RecyclerView.LayoutParams
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment