summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2010-04-27 04:13:20 +0200
committerDavid A. Madore <david+git@madore.org>2010-04-27 04:13:20 +0200
commitd6faabdfba24aa85683f21595661063166a3d940 (patch)
tree29e5bcd8a9e63dfcee1c85b3472b4f6d41006b18 /src
parent1796a65fd4803ca107ea0eec2e158216d8e86e74 (diff)
downloadUnicodeMap-d6faabdfba24aa85683f21595661063166a3d940.tar.gz
UnicodeMap-d6faabdfba24aa85683f21595661063166a3d940.tar.bz2
UnicodeMap-d6faabdfba24aa85683f21595661063166a3d940.zip
Add a very hastily written "about".
Diffstat (limited to 'src')
-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);
}