Revision: 2380
http://sourceforge.net/p/swingme/code/2380
Author: yuranet
Date: 2019-09-26 23:56:53 +0000 (Thu, 26 Sep 2019)
Log Message:
-----------
compile on new android
Modified Paths:
--------------
AndroidME/src_MIDP/javax/microedition/lcdui/TextBox.java
Modified: AndroidME/src_MIDP/javax/microedition/lcdui/TextBox.java
===================================================================
--- AndroidME/src_MIDP/javax/microedition/lcdui/TextBox.java 2019-09-19 12:14:10 UTC (rev 2379)
+++ AndroidME/src_MIDP/javax/microedition/lcdui/TextBox.java 2019-09-26 23:56:53 UTC (rev 2380)
@@ -7,8 +7,10 @@
import net.yura.android.AndroidMeActivity;
import net.yura.android.AndroidMeApp;
+
import android.os.Build;
import android.os.Bundle;
+import android.os.Handler;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.CompletionInfo;
@@ -197,6 +199,10 @@
private static CharSequence composingText = "";
+ /**
+ * This class is NOT used when NativeAndroidTextField is enabled.
+ * @see net.yura.android.NativeAndroidTextField#init()
+ */
public static class TextBoxView implements InputHelper,InputConnection {
private CharSequence textBeforeCursor = " ";
@@ -203,6 +209,11 @@
private TextBox textBox;
public TextBoxView() {
+ //#mdebug debug
+ if (debug) {
+ System.out.println("[TextBoxView private] new");
+ }
+ //#enddebug
}
public void start(TextBox tb) {
@@ -345,7 +356,6 @@
return true;
}
-
//Override
public boolean finishComposingText() {
@@ -584,5 +594,24 @@
public boolean requestCursorUpdates(int cursorUpdateMode) {
return false;
}
+
+ //Override API 24
+ public boolean deleteSurroundingTextInCodePoints(int beforeLength, int afterLength) {
+ return false;
+ }
+
+ //Override API 24
+ public Handler getHandler() {
+ return null;
+ }
+
+ //Override API 24
+ public void closeConnection() {
+ }
+
+ //Override API 25
+ public boolean commitContent(android.view.inputmethod.InputContentInfo inputContentInfo, int flags, Bundle opts) {
+ return false;
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|