Skip to content

Commit

Permalink
Merge pull request #9752 from garymathews/TIMOB-25661_70X
Browse files Browse the repository at this point in the history
[7_0_X][TIMOB-25661] Android: Fix broken animation behaviour on Android 7.0+
  • Loading branch information
Lokesh Choudhary committed Jan 24, 2018
2 parents 7e69325 + 1be46e0 commit 4c70b76
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public TiBorderWrapperView(Context context)

paint = new Paint(Paint.ANTI_ALIAS_FLAG);
bounds = new Rect();

// TIMOB-25661: disable hardware acceleration to prevent broken
// animation behaviour on Android 7.0 and above
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
}

@Override
Expand Down

0 comments on commit 4c70b76

Please sign in to comment.