From ccf1457b46e35dbbeb8e7ceccad4c58b68dfee0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E8=B5=9F=E4=B8=9E?= Date: Sun, 15 Oct 2017 19:39:31 +0800 Subject: [PATCH] fix foreground helper bug --- .../magicasakura/widgets/AppCompatForegroundHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magicasakura/src/main/java/com/bilibili/magicasakura/widgets/AppCompatForegroundHelper.java b/magicasakura/src/main/java/com/bilibili/magicasakura/widgets/AppCompatForegroundHelper.java index 7c35b0c..0b11425 100644 --- a/magicasakura/src/main/java/com/bilibili/magicasakura/widgets/AppCompatForegroundHelper.java +++ b/magicasakura/src/main/java/com/bilibili/magicasakura/widgets/AppCompatForegroundHelper.java @@ -56,7 +56,7 @@ public AppCompatForegroundHelper(View view, TintManager tintManager) { void loadFromAttribute(AttributeSet attrs, int defStyleAttr) { TypedArray array = mView.getContext().obtainStyledAttributes(attrs, ATTR, defStyleAttr, 0); if (array.hasValue(1)) { - mForegroundResId = array.getResourceId(1, 0); + mForegroundTintResId = array.getResourceId(1, 0); if (array.hasValue(2)) { setSupportForegroundTintMode(DrawableUtils.parseTintMode(array.getInt(2, 0), null)); }