From 1ba65b2c39ddda9916093cb2102dbe70eafc3396 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Thu, 29 Apr 2010 03:34:27 +0200 Subject: Avoid listing empty ranges. --- src/org/madore/android/unicodeMap/UnicodeMapActivity.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/org') 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); -- cgit v1.2.3