summaryrefslogtreecommitdiffstats
path: root/src/org/madore
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/madore')
-rw-r--r--src/org/madore/android/unicodeMap/UnicodeMapActivity.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
index f9f2a34..d260ff6 100644
--- a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
+++ b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
@@ -291,6 +291,21 @@ public final class UnicodeMapActivity extends ListActivity {
dialog.show();
}
+ protected void displayAbout() {
+ final Dialog dialog = new Dialog(UnicodeMapActivity.this);
+ dialog.setTitle(R.string.about_title);
+ dialog.setOwnerActivity(this);
+ dialog.setContentView(R.layout.about_layout);
+ dialog.setCancelable(true);
+ final Button btn = (Button) dialog.findViewById(R.id.aboutOk);
+ btn.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View view) {
+ dialog.dismiss();
+ }
+ });
+ dialog.show();
+ }
+
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ( ( keyCode == KeyEvent.KEYCODE_BACK )
@@ -314,6 +329,9 @@ public final class UnicodeMapActivity extends ListActivity {
case R.id.menuSearch:
querySearch();
return true;
+ case R.id.menuAbout:
+ displayAbout();
+ return true;
default:
return super.onContextItemSelected(item);
}