From b085a39f9c201f3d25da9ae69fbee17815fafe16 Mon Sep 17 00:00:00 2001 From: Evgeny Shishkin Date: Wed, 28 Dec 2016 22:10:33 +0300 Subject: [PATCH] Prepare version 1.1.4 --- CHANGELOG.md | 7 +++++++ README.md | 2 +- .../main/java/com/jetradarmobile/snowfall/SnowfallView.kt | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f97e710..bc827ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ Change Log ========== +## Version 1.1.4 + +_2016-12-28_ + + * Fixed crash in case if view has initially visibility GONE. + + ## Version 1.1.3 _2016-12-28_ diff --git a/README.md b/README.md index 8b7da47..ea65b33 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Add the dependency ```groovy dependencies { - compile 'com.github.jetradarmobile:android-snowfall:1.1.3' + compile 'com.github.jetradarmobile:android-snowfall:1.1.4' } ``` diff --git a/snowfall/src/main/java/com/jetradarmobile/snowfall/SnowfallView.kt b/snowfall/src/main/java/com/jetradarmobile/snowfall/SnowfallView.kt index 4383252..2333f05 100644 --- a/snowfall/src/main/java/com/jetradarmobile/snowfall/SnowfallView.kt +++ b/snowfall/src/main/java/com/jetradarmobile/snowfall/SnowfallView.kt @@ -49,8 +49,8 @@ class SnowfallView(context: Context, attrs: AttributeSet) : View(context, attrs) private val snowflakesFadingEnabled: Boolean private val snowflakesAlreadyFalling: Boolean - private lateinit var snowflakes: Array private val updateSnowflakesThread: UpdateSnowflakesThread + private var snowflakes: Array init { val a = context.obtainStyledAttributes(attrs, R.styleable.SnowfallView) @@ -70,6 +70,7 @@ class SnowfallView(context: Context, attrs: AttributeSet) : View(context, attrs) a.recycle() } updateSnowflakesThread = UpdateSnowflakesThread() + snowflakes = emptyArray() } private fun dpToPx(dp: Int): Int {