Use postInvalidate instead of postInvalidateOnAnimation.

We still support android 4.0, which does not implement postInvalidateOnAnimation.
This commit is contained in:
Adrian Ulrich committed 2017-08-26 09:50:18 +02:00
1 parent fa65bc393b
commit 1ad2a6fb8b
1 file changed
+2 -2
@@ -214,7 +214,7 @@ public final class CoverView extends View implements Handler.Callback {
bitmap = generateBitmap(song);
mBitmapBucket.setSongBitmap(i, song, bitmap);
postInvalidateOnAnimation();
postInvalidate();
}
/**
@@ -466,7 +466,7 @@ public final class CoverView extends View implements Handler.Callback {
}
if (invalidate)
postInvalidateOnAnimation();
postInvalidate();
return true;
}