Skip to content

Commit

Permalink
Disable hardware rendering for Android 7 to avoid native crashes in l…
Browse files Browse the repository at this point in the history
…ibhwui.so and libc.so (#1586)

Co-authored-by: Orit Malki <orit@yokee.tv>
  • Loading branch information
oritgurel and OritYokee authored Jul 29, 2020
1 parent 617334b commit 65ec4f5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,8 @@ private void enableOrDisableHardwareLayer() {
useHardwareLayer = false;
} else if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
useHardwareLayer = false;
} else if (Build.VERSION.SDK_INT == Build.VERSION_CODES.N || Build.VERSION.SDK_INT == Build.VERSION_CODES.N_MR1) {
useHardwareLayer = false;
}
layerType = useHardwareLayer ? LAYER_TYPE_HARDWARE : LAYER_TYPE_SOFTWARE;
break;
Expand Down

0 comments on commit 65ec4f5

Please sign in to comment.