summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2010-04-29 03:34:27 +0200
committerDavid A. Madore <david+git@madore.org>2010-04-29 03:34:27 +0200
commit1ba65b2c39ddda9916093cb2102dbe70eafc3396 (patch)
treecf6ac021777ff1fe2a6b5cc8bf6fc48e29e6f77b
parent5faf5b459a06e9708707594d51974cc8d5a67c59 (diff)
downloadUnicodeMap-1ba65b2c39ddda9916093cb2102dbe70eafc3396.tar.gz
UnicodeMap-1ba65b2c39ddda9916093cb2102dbe70eafc3396.tar.bz2
UnicodeMap-1ba65b2c39ddda9916093cb2102dbe70eafc3396.zip
Avoid listing empty ranges.
-rw-r--r--src/org/madore/android/unicodeMap/UnicodeMapActivity.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
index 5a2622a..d9c56a3 100644
--- a/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
+++ b/src/org/madore/android/unicodeMap/UnicodeMapActivity.java
@@ -165,7 +165,13 @@ public final class UnicodeMapActivity extends ListActivity {
// public String getTitle() { return "TEST"; }
// });
for ( UnicodeCharacter.Range rng : UnicodeCharacter.Range.values() )
- list.add(rng);
+ if ( rng != UnicodeCharacter.Range.HIGH_SURROGATES
+ && rng != UnicodeCharacter.Range.HIGH_PRIVATE_USE_SURROGATES
+ && rng != UnicodeCharacter.Range.LOW_SURROGATES
+ && rng != UnicodeCharacter.Range.PRIVATE_USE_AREA
+ && rng != UnicodeCharacter.Range.SUPPLEMENTARY_PRIVATE_USE_AREA_A
+ && rng != UnicodeCharacter.Range.SUPPLEMENTARY_PRIVATE_USE_AREA_B )
+ list.add(rng);
disp.setListCache(list);
adapter = new UnicodeArrayAdapter(this, list);
setListAdapter(adapter);