Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24dfaeb5 authored by tibbi's avatar tibbi
Browse files

add a crashfix to the LineColorPicker

parent 23a0bb35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.0.17'
        propVersionName = '3.0.20'
        kotlin_version = '1.2.0'
        support_libs = '27.0.2'
    }
+2 −1
Original line number Diff line number Diff line
@@ -66,7 +66,8 @@ class LineColorPicker(context: Context, attrs: AttributeSet) : LinearLayout(cont
        updateItemMargin(lastColorIndex, false)
    }

    fun getCurrentColor() = colors[lastColorIndex]
    // do not remove ": Int", it causes "NoSuchMethodError" for some reason
    fun getCurrentColor(): Int = colors[lastColorIndex]

    private fun initColorPicker() {
        removeAllViews()