Calling notifyDataSetChanged reversing the position's order, is this a bug?
<p>I'm developing one android application in which I'm using one customized <code>ListView</code> which extends <code>BaseAdapter</code>, In which I have placed two  TextView's and one button to delete the corresponding row from the list and also from the original data, </p>

<p>Whenever I call the <code>notifyDataSetChanged()</code> function the value of the position get reversed, am I doing anything wrong ?, Is there any other correct way to do this without the position get reversed ? </p>

<pre><code>convertView.setOnClickListener(new OnClickListener() {

private int pos = position;

public void onClick(View v) {

Toast.makeText(context, "Click-" + String.valueOf(pos), Toast.LENGTH_SHORT).show();

}

});

holder.delete.setOnClickListener(new OnClickListener() {

public void onClick(View view) {

adapter.notifyDataSetChanged();

}

});
</code></pre>

<p>Any help will be appreciated.</p>
