From 718a9bdd127b81973ae9de686988a330b3649fa9 Mon Sep 17 00:00:00 2001 From: pelya Date: Wed, 15 Feb 2012 16:05:19 +0200 Subject: [PATCH] Added some todo --- project/java/MainActivity.java | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/project/java/MainActivity.java b/project/java/MainActivity.java index 16e43e69c..2de16aae7 100644 --- a/project/java/MainActivity.java +++ b/project/java/MainActivity.java @@ -44,6 +44,7 @@ import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.view.View.OnKeyListener; +import android.view.MenuItem; import android.text.method.TextKeyListener; import java.util.LinkedList; import java.io.SequenceInputStream; @@ -370,7 +371,23 @@ public class MainActivity extends Activity { } return true; } - + + // Action bar support for Android 3.X, there are reports that on-screen overlay buttons do not send button events on Galaxy Nexus S, however in emulator everything works. + /* + @Override + public boolean onOptionsItemSelected(MenuItem item) + { + System.out.println("libSDL: onOptionsItemSelected: ID " + item.getItemId()); + switch (item.getItemId()) + { + case android.R.id.home: + return true; + default: + return super.onOptionsItemSelected(item); + } + } + */ + @Override public boolean dispatchTouchEvent(final MotionEvent ev) {