Skip to content

Commit

Permalink
Prepare version 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkil committed Dec 28, 2016
1 parent 9e7b732 commit b085a39
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Snowflake>
private val updateSnowflakesThread: UpdateSnowflakesThread
private var snowflakes: Array<Snowflake>

init {
val a = context.obtainStyledAttributes(attrs, R.styleable.SnowfallView)
Expand All @@ -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 {
Expand Down

0 comments on commit b085a39

Please sign in to comment.