Browse Source

Fixed bug with Palette API

master
Anthony Restaino 10 years ago
parent
commit
ab134a8927
  1. 5
      src/acr/browser/lightning/BrowserActivity.java

5
src/acr/browser/lightning/BrowserActivity.java

@ -1619,10 +1619,9 @@ public class BrowserActivity extends ActionBarActivity implements BrowserControl
@Override @Override
public void onGenerated(Palette palette) { public void onGenerated(Palette palette) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
int color = palette.getVibrantColor(mContext.getResources().getColor( int color = 0xff000000 | palette.getVibrantColor(mContext.getResources()
R.color.primary_color)); .getColor(R.color.primary_color));
ColorDrawable draw = (ColorDrawable) mPageLayout.getBackground(); ColorDrawable draw = (ColorDrawable) mPageLayout.getBackground();
ValueAnimator anim = ValueAnimator.ofObject(new ArgbEvaluator(), ValueAnimator anim = ValueAnimator.ofObject(new ArgbEvaluator(),
draw.getColor(), color); draw.getColor(), color);
anim.addUpdateListener(new AnimatorUpdateListener() { anim.addUpdateListener(new AnimatorUpdateListener() {

Loading…
Cancel
Save