diff options
| author | Po Lu | 2023-07-07 14:22:38 +0800 |
|---|---|---|
| committer | Po Lu | 2023-07-07 14:22:38 +0800 |
| commit | e40dca8361dfa8aafbe17bfeb8ad06b6ba5230ad (patch) | |
| tree | 707a611561f02ddcc0ab7b5683896e6d3f5746f0 /java | |
| parent | 4db8a10648acceac88052b25b9f380d5aad803ee (diff) | |
| download | emacs-e40dca8361dfa8aafbe17bfeb8ad06b6ba5230ad.tar.gz emacs-e40dca8361dfa8aafbe17bfeb8ad06b6ba5230ad.zip | |
Update Android port
* java/org/gnu/emacs/EmacsSurfaceView.java (copyToFrontBuffer):
Use fallback bit blit function on Android 7.0 as well, as
crashes have been observed in drawBitmap.
Diffstat (limited to 'java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsSurfaceView.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/java/org/gnu/emacs/EmacsSurfaceView.java b/java/org/gnu/emacs/EmacsSurfaceView.java index 5b3e05eb9f4..3f62af4ab99 100644 --- a/java/org/gnu/emacs/EmacsSurfaceView.java +++ b/java/org/gnu/emacs/EmacsSurfaceView.java | |||
| @@ -76,7 +76,9 @@ public final class EmacsSurfaceView extends View | |||
| 76 | EmacsService.checkEmacsThread (); | 76 | EmacsService.checkEmacsThread (); |
| 77 | 77 | ||
| 78 | if (Build.VERSION.SDK_INT != Build.VERSION_CODES.O | 78 | if (Build.VERSION.SDK_INT != Build.VERSION_CODES.O |
| 79 | && Build.VERSION.SDK_INT != Build.VERSION_CODES.O_MR1) | 79 | && Build.VERSION.SDK_INT != Build.VERSION_CODES.O_MR1 |
| 80 | && Build.VERSION.SDK_INT != Build.VERSION_CODES.N_MR1 | ||
| 81 | && Build.VERSION.SDK_INT != Build.VERSION_CODES.N) | ||
| 80 | { | 82 | { |
| 81 | /* If `drawBitmap' can safely be used while a bitmap is locked | 83 | /* If `drawBitmap' can safely be used while a bitmap is locked |
| 82 | by another thread, continue here... */ | 84 | by another thread, continue here... */ |
| @@ -89,8 +91,8 @@ public final class EmacsSurfaceView extends View | |||
| 89 | } | 91 | } |
| 90 | else | 92 | else |
| 91 | { | 93 | { |
| 92 | /* But if it can not, as on Android 8.0 and 8.1, then use a | 94 | /* But if it can not, as on Android 7.0 through 8.1, then use |
| 93 | replacement function. */ | 95 | a replacement function. */ |
| 94 | 96 | ||
| 95 | if (damageRect != null) | 97 | if (damageRect != null) |
| 96 | EmacsNative.blitRect (bitmap, frontBuffer, | 98 | EmacsNative.blitRect (bitmap, frontBuffer, |