summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2010-05-02 00:16:58 +0200
committerDavid A. Madore <david+git@madore.org>2010-05-02 00:16:58 +0200
commitef789edffd1905d1b66c90aa7392fd97252ccbb5 (patch)
treeef32f7934a381098729c5e047d9a2698129e2bad
parent600031f8b4c473336ba7e4f183c7ad3018dea0aa (diff)
downloadUnicodeMap-ef789edffd1905d1b66c90aa7392fd97252ccbb5.tar.gz
UnicodeMap-ef789edffd1905d1b66c90aa7392fd97252ccbb5.tar.bz2
UnicodeMap-ef789edffd1905d1b66c90aa7392fd97252ccbb5.zip
Title decode string results as "decode results".
The string itself may contain nasty stuff, or be too long, or whatever: avoid using it as title.
-rw-r--r--res/values/strings.xml1
-rw-r--r--src/org/madore/android/unicodeMap/UnicodeMapActivity.java3
2 files changed, 3 insertions, 1 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 9788cdf..aee9313 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -28,6 +28,7 @@
<string name="decode_button">Decode</string>
<string name="decode_hint">Paste Unicode characters here to see
their names</string>
+ <string name="decode_results">decode results</string>
<string name="menu_about">About</string>
<string name="about_title">About Unicode Map</string>
<string name="about_text">Unicode Map version 0.0.2\nby David
diff --git a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
index f50ef1f..9db0476 100644
--- a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
+++ b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
@@ -568,7 +568,8 @@ public final class UnicodeMapActivity extends ListActivity {
}
protected void doDecode(String s) {
- Display newDisp = new DecodeDisplay(s, s);
+ Display newDisp = new DecodeDisplay(getResources().getString(R.string.decode_results),
+ s);
saveDisplay();
doDisplay(newDisp, true);
}