on the below code data.size() is equal to 6 and i'm sure the "if" block inside it should be execute at last 3 times,but it's execute once,why??
private void deletePost(){
byte count=0;
Log.v(TAG,"size "+data.size());
for(int i=0;i<data.size();i++){
if(data.get(i).isItemSelected()){
data.remove(i);
// deleteFromCloud(data.get(i).getId());
Log.v(TAG,"POS "+i);
count++;
}
Log.v(TAG,"i "+i);
}
Log.v(TAG,"items deleted "+count);
rcAdapter.notifyDataSetChanged();
Toast.makeText(this,count + " " + getString(R.string.itemsDeleted),Toast.LENGTH_LONG).show();
}