Skip to content

Commit

Permalink
Merge branch 'hotfix/fix_vector'
Browse files Browse the repository at this point in the history
  • Loading branch information
sangcomz committed Sep 7, 2018
2 parents 3933fea + 7c8279e commit 7fc459d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions chameleon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ android {
versionName gradle.versionName
versionCode gradle.versionCode
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary true
}
}

Expand Down
4 changes: 2 additions & 2 deletions chameleon/src/main/java/xyz/sangcomz/chameleon/Chameleon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ open class Chameleon(context: Context?, attrs: AttributeSet?) : ConstraintLayout
it.getString(R.styleable.Chameleon_emptySubText) ?: "empty content",
it.getColor(R.styleable.Chameleon_emptySubTextColor, ContextCompat.getColor(context, R.color.colorSubText)),
it.getDimension(R.styleable.Chameleon_emptySubTextSize, context.resources.getDimension(R.dimen.sub_text_size)),
it.getDrawable(R.styleable.Chameleon_emptyDrawable)
it.getResourceId(R.styleable.Chameleon_emptyDrawable, -1).getDrawable(context)
?: R.drawable.ic_empty.getDrawable(context),
it.getString(R.styleable.Chameleon_emptyButtonText) ?: "retry",
it.getColor(R.styleable.Chameleon_emptyButtonTextColor, ContextCompat.getColor(context, R.color.colorTitleText)),
Expand All @@ -76,7 +76,7 @@ open class Chameleon(context: Context?, attrs: AttributeSet?) : ConstraintLayout
it.getString(R.styleable.Chameleon_errorSubText) ?: "error content",
it.getColor(R.styleable.Chameleon_errorSubTextColor, ContextCompat.getColor(context, R.color.colorSubText)),
it.getDimension(R.styleable.Chameleon_errorSubTextSize, context.resources.getDimension(R.dimen.sub_text_size)),
it.getDrawable(R.styleable.Chameleon_errorDrawable)
it.getResourceId(R.styleable.Chameleon_errorDrawable, -1).getDrawable(context)
?: R.drawable.ic_error.getDrawable(context),
it.getString(R.styleable.Chameleon_errorButtonText) ?: "retry",
it.getColor(R.styleable.Chameleon_errorButtonTextColor, ContextCompat.getColor(context, R.color.colorTitleText)),
Expand Down

0 comments on commit 7fc459d

Please sign in to comment.