Revision: 2473
http://sourceforge.net/p/swingme/code/2473
Author: yuranet
Date: 2021-06-24 10:21:37 +0000 (Thu, 24 Jun 2021)
Log Message:
-----------
api match others
Modified Paths:
--------------
AndroidME/src_MIDP/javax/microedition/lcdui/Display.java
Modified: AndroidME/src_MIDP/javax/microedition/lcdui/Display.java
===================================================================
--- AndroidME/src_MIDP/javax/microedition/lcdui/Display.java 2021-06-23 14:30:51 UTC (rev 2472)
+++ AndroidME/src_MIDP/javax/microedition/lcdui/Display.java 2021-06-24 10:21:37 UTC (rev 2473)
@@ -186,12 +186,17 @@
}
}
- public void vibrate(int duration) {
+ /**
+ * @return true if the vibrator can be controlled by the application and this display is in the foreground, false otherwise
+ */
+ public boolean vibrate(int duration) {
Context ctx = AndroidMeApp.getContext();
Vibrator vibrator = (Vibrator)ctx.getSystemService(Activity.VIBRATOR_SERVICE);
vibrator.vibrate(duration);
+
+ return true;
}
public void flashBacklight(int duration) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|