Skip to content

Commit

Permalink
fix(android): fix views with border and transparency (#11224)
Browse files Browse the repository at this point in the history
Properly handle disabling the HW acceleration for views with transparency and borders
  • Loading branch information
ypbnv authored and ssjsamir committed Sep 25, 2019
1 parent 28907e0 commit 95fed44
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2050,7 +2050,8 @@ public boolean onLongClick(View view)
protected void disableHWAcceleration()
{
if (borderView == null
|| (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN && !borderView.isHardwareAccelerated())) {
|| (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN && borderView.isAttachedToWindow()
&& !borderView.isHardwareAccelerated())) {
return;
}
Log.d(TAG, "Disabling hardware acceleration for instance of " + borderView.getClass().getSimpleName(),
Expand Down

0 comments on commit 95fed44

Please sign in to comment.