Fix: libhwui.so "null pointer dereference" SIGSEGV (Android) by Sublimis · Pull Request #1657 · mapsforge/mapsforge
| * The only drawback seems to be that line joins of a few paths may not be rounded. | ||
| * Defaults to {@code true} for Android API levels 32 and below. | ||
| */ | ||
| public static boolean ANDROID_LIBHWUI_FIX = Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2; |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Sublimis Why this particular Android version?
On which Android versions have you seen this problem happen?
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Older obviously. Some change happened between Android 12 and 13 that most probably fixes the bug. Nonetheless, there may also be performance benefits, as drawing a bunch of lines is faster than using a path from our earlier experience.