Jeff Sharkey's SeparatedListAdapter Bugs
<p>I was using <a href="http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/" rel="nofollow">Jeff Sharkey's SeparatedListAdapter</a> to add headers.<BR>
At first, everything was all right.<BR>
However, when I added the exactly same String of the header, the problem showed up.<BR>
The headers didn't show correctly but be lack of some headers.<BR>
This problem was solved when I changed the same String of the headers.<BR>
But what if I need to use the same String headers?<BR>
I guess the problem happened because of...</p>

<pre><code>public final ArrayAdapter&lt;String&gt; headers;
</code></pre>

<p>Thanks.</p>

<hr>

<p>I found that it happened because...</p>

<pre><code>public final Map&lt;String, Adapter&gt; sections = new LinkedHashMap&lt;String, Adapter&gt;();
</code></pre>

<p>Because of Map, so the duplicate String key will cause the problem.<BR>
The map doesn't know which one is my need.<BR></p>

<p>So, does anyone know the other SeparatedListAdapter that allows me to use duplicate String key? Or how can I fix it?</p>

<p>Thanks</p>
