[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/android e40dca8361d: Update Android port
|
From: |
Po Lu |
|
Subject: |
feature/android e40dca8361d: Update Android port |
|
Date: |
Fri, 7 Jul 2023 02:23:38 -0400 (EDT) |
branch: feature/android
commit e40dca8361dfa8aafbe17bfeb8ad06b6ba5230ad
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
java/org/gnu/emacs/EmacsSurfaceView.java | 8 +++++---
1 file 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
EmacsService.checkEmacsThread ();
if (Build.VERSION.SDK_INT != Build.VERSION_CODES.O
- && Build.VERSION.SDK_INT != Build.VERSION_CODES.O_MR1)
+ && Build.VERSION.SDK_INT != Build.VERSION_CODES.O_MR1
+ && Build.VERSION.SDK_INT != Build.VERSION_CODES.N_MR1
+ && Build.VERSION.SDK_INT != Build.VERSION_CODES.N)
{
/* If `drawBitmap' can safely be used while a bitmap is locked
by another thread, continue here... */
@@ -89,8 +91,8 @@ public final class EmacsSurfaceView extends View
}
else
{
- /* But if it can not, as on Android 8.0 and 8.1, then use a
- replacement function. */
+ /* But if it can not, as on Android 7.0 through 8.1, then use
+ a replacement function. */
if (damageRect != null)
EmacsNative.blitRect (bitmap, frontBuffer,
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/android e40dca8361d: Update Android port,
Po Lu <=