Fix bug with transform Animations
A recent change to enable View properties at the native DisplayList level mistakenly cuased Animation transforms get be ignored for any View with a DisplayList. The correct code should have checked whether DL properties were enabled for the view (disabled by default for now). Issue #6173975 Animations are gone Change-Id: I5d5f53f854fb1b533a3150158e84392d7283d2a8
This commit is contained in:
@@ -11473,7 +11473,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal
|
||||
if (concatMatrix) {
|
||||
// Undo the scroll translation, apply the transformation matrix,
|
||||
// then redo the scroll translate to get the correct result.
|
||||
if (!hasDisplayList) {
|
||||
if (!useDisplayListProperties) {
|
||||
canvas.translate(-transX, -transY);
|
||||
canvas.concat(transformToApply.getMatrix());
|
||||
canvas.translate(transX, transY);
|
||||
|
||||
Reference in New Issue
Block a user