aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'java/org/gnu')
-rw-r--r--java/org/gnu/emacs/EmacsActivity.java6
-rw-r--r--java/org/gnu/emacs/EmacsFillPolygon.java13
2 files changed, 18 insertions, 1 deletions
diff --git a/java/org/gnu/emacs/EmacsActivity.java b/java/org/gnu/emacs/EmacsActivity.java
index 0c9e8312b90..6e8330e3092 100644
--- a/java/org/gnu/emacs/EmacsActivity.java
+++ b/java/org/gnu/emacs/EmacsActivity.java
@@ -271,6 +271,12 @@ public class EmacsActivity extends Activity
271 /* Set it as the content view. */ 271 /* Set it as the content view. */
272 setContentView (layout); 272 setContentView (layout);
273 273
274 /* Android 15 also realigns activity contents to originate beneath
275 system windows, e.g. the navigation bar, so request the original
276 behavior. */
277 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM)
278 layout.setFitsSystemWindows (true);
279
274 /* Maybe start the Emacs service if necessary. */ 280 /* Maybe start the Emacs service if necessary. */
275 EmacsService.startEmacsService (this); 281 EmacsService.startEmacsService (this);
276 282
diff --git a/java/org/gnu/emacs/EmacsFillPolygon.java b/java/org/gnu/emacs/EmacsFillPolygon.java
index 6bc8333984a..d99fdd97782 100644
--- a/java/org/gnu/emacs/EmacsFillPolygon.java
+++ b/java/org/gnu/emacs/EmacsFillPolygon.java
@@ -26,8 +26,11 @@ import android.graphics.Point;
26import android.graphics.Rect; 26import android.graphics.Rect;
27import android.graphics.RectF; 27import android.graphics.RectF;
28 28
29import android.os.Build;
30
29public final class EmacsFillPolygon 31public final class EmacsFillPolygon
30{ 32{
33 @SuppressWarnings ("deprecation") /* computeBounds (IZ) */
31 public static void 34 public static void
32 perform (EmacsDrawable drawable, EmacsGC gc, Point points[]) 35 perform (EmacsDrawable drawable, EmacsGC gc, Point points[])
33 { 36 {
@@ -60,7 +63,15 @@ public final class EmacsFillPolygon
60 63
61 /* Compute the damage rectangle. */ 64 /* Compute the damage rectangle. */
62 rectF = new RectF (0, 0, 0, 0); 65 rectF = new RectF (0, 0, 0, 0);
63 path.computeBounds (rectF, true); 66
67 /* computeBounds (IZ) is deprecated but the incompetence of
68 Android's release management has caused its replacement to be
69 omitted from published header files. */
70
71 /* if (Build.VERSION.SDK_INT < Build.VERSION_CODES.VANILLA_ICE_CREAM) */
72 path.computeBounds (rectF, true);
73 /* else
74 path.computeBounds (rectF); */
64 75
65 rect = new Rect ((int) Math.floor (rectF.left), 76 rect = new Rect ((int) Math.floor (rectF.left),
66 (int) Math.floor (rectF.top), 77 (int) Math.floor (rectF.top),