Skip to content

Commit

Permalink
0.3:restoreToCount Exception when layer<1, fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonX15 committed Apr 3, 2018
1 parent df61e60 commit ad57ca5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 15
targetSdkVersion 26
versionCode 3
versionName "0.2"
versionCode 4
versionName "0.3"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
4 changes: 3 additions & 1 deletion lib/src/main/java/com/simon/app/lib/CircleImageView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ class CircleImageView(context: Context?, attrs: AttributeSet?) : ImageView(conte

mPaint!!.xfermode = null
//layer退栈
restoreToCount(layer)
if (layer >= 1) {
restoreToCount(layer)
}
}
}

Expand Down

0 comments on commit ad57ca5

Please sign in to comment.