mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-15 07:41:09 -08:00
Update Android port
* java/org/gnu/emacs/EmacsActivity.java (onCreate): * java/org/gnu/emacs/EmacsContextMenu.java: * java/org/gnu/emacs/EmacsDocumentsProvider.java (getMimeType): * java/org/gnu/emacs/EmacsDrawLine.java (perform): * java/org/gnu/emacs/EmacsDrawRectangle.java (perform): * java/org/gnu/emacs/EmacsFillPolygon.java: * java/org/gnu/emacs/EmacsFontDriver.java: * java/org/gnu/emacs/EmacsHandleObject.java: * java/org/gnu/emacs/EmacsInputConnection.java: * java/org/gnu/emacs/EmacsMultitaskActivity.java (EmacsMultitaskActivity): * java/org/gnu/emacs/EmacsNative.java: * java/org/gnu/emacs/EmacsNoninteractive.java (EmacsNoninteractive, main): * java/org/gnu/emacs/EmacsOpenActivity.java (EmacsOpenActivity) (startEmacsClient): * java/org/gnu/emacs/EmacsSdk7FontDriver.java: * java/org/gnu/emacs/EmacsSdk8Clipboard.java: * java/org/gnu/emacs/EmacsService.java (EmacsService, onCreate): * java/org/gnu/emacs/EmacsView.java (EmacsView, onLayout): * java/org/gnu/emacs/EmacsWindow.java (EmacsWindow): * java/org/gnu/emacs/EmacsWindowAttachmentManager.java (EmacsWindowAttachmentManager): Remove redundant includes. Reorganize some functions around, remove duplicate `getLibDir' functions, and remove unused local variables.
This commit is contained in:
parent
26b3b8433d
commit
1cae464859
19 changed files with 53 additions and 117 deletions
|
|
@ -31,19 +31,16 @@ import android.content.Context;
|
|||
import android.graphics.Rect;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Point;
|
||||
import android.graphics.PixelFormat;
|
||||
|
||||
import android.view.View;
|
||||
import android.view.ViewManager;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Gravity;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.InputDevice;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.util.Log;
|
||||
|
||||
import android.os.Build;
|
||||
|
|
@ -87,7 +84,7 @@ public final class EmacsWindow extends EmacsHandleObject
|
|||
public EmacsWindow parent;
|
||||
|
||||
/* List of all children in stacking order. This must be kept
|
||||
consistent! */
|
||||
consistent with their Z order! */
|
||||
public ArrayList<EmacsWindow> children;
|
||||
|
||||
/* Map between pointer identifiers and last known position. Used to
|
||||
|
|
@ -105,9 +102,8 @@ public final class EmacsWindow extends EmacsHandleObject
|
|||
last button press or release event. */
|
||||
public int lastButtonState, lastModifiers;
|
||||
|
||||
/* Whether or not the window is mapped, and whether or not it is
|
||||
deiconified. */
|
||||
private boolean isMapped, isIconified;
|
||||
/* Whether or not the window is mapped. */
|
||||
private boolean isMapped;
|
||||
|
||||
/* Whether or not to ask for focus upon being mapped, and whether or
|
||||
not the window should be focusable. */
|
||||
|
|
@ -122,7 +118,8 @@ public final class EmacsWindow extends EmacsHandleObject
|
|||
private WindowManager windowManager;
|
||||
|
||||
/* The time of the last KEYCODE_VOLUME_DOWN release. This is used
|
||||
to quit Emacs. */
|
||||
to quit Emacs upon two rapid clicks of the volume down
|
||||
button. */
|
||||
private long lastVolumeButtonRelease;
|
||||
|
||||
/* Linked list of character strings which were recently sent as
|
||||
|
|
@ -1103,14 +1100,12 @@ public final class EmacsWindow extends EmacsHandleObject
|
|||
public void
|
||||
noticeIconified ()
|
||||
{
|
||||
isIconified = true;
|
||||
EmacsNative.sendIconified (this.handle);
|
||||
}
|
||||
|
||||
public void
|
||||
noticeDeiconified ()
|
||||
{
|
||||
isIconified = false;
|
||||
EmacsNative.sendDeiconified (this.handle);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue