Fix highlight animation

Set correct from-to color for highlight animation

Fixes: 141535322
Test: visual
Change-Id: I1cec8d57fca1435922ad196a4b314d8cee2be9f0
This commit is contained in:
Tsung-Mao Fang
2019-09-25 11:35:28 +08:00
parent c6ef1edddc
commit f4e3f78fa0

View File

@@ -160,7 +160,7 @@ public class HighlightablePreferenceGroupAdapter extends PreferenceGroupAdapter
return;
}
mFadeInAnimated = true;
final int colorFrom = Color.WHITE;
final int colorFrom = mNormalBackgroundRes;
final int colorTo = mHighlightColor;
final ValueAnimator fadeInLoop = ValueAnimator.ofObject(
new ArgbEvaluator(), colorFrom, colorTo);
@@ -188,7 +188,7 @@ public class HighlightablePreferenceGroupAdapter extends PreferenceGroupAdapter
return;
}
int colorFrom = mHighlightColor;
int colorTo = Color.WHITE;
int colorTo = mNormalBackgroundRes;
v.setTag(R.id.preference_highlighted, false);
final ValueAnimator colorAnimation = ValueAnimator.ofObject(