title: Firebase onChildAdded is being triggered multiple times
body: <p>I have a <code>ListView</code> that each row contains several <code>EditText</code> and a save <code>Button</code>.</p>
  
  <p>In the ShowOrder activty i'm getting the data from Firebase</p>
  
  <pre><code>public void getItemsOrderDetails(final String key){
  
      orderDetailsRef.addValueEventListener(new ValueEventListener() {
  
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              arrayLength = dataSnapshot.getChildrenCount();
  
              String itemN="", discription="", qty="", pcsCtn="", ctnWt="", compileStatus="", palletN="", ttlCtn="";
              if(!key.equals("costumerName") &amp;&amp; !key.equals("dateOfDelivery") &amp;&amp; !key.equals("dateOfOrder") &amp;&amp; !key.equals("orderN") &amp;&amp; !key.equals("remarks") &amp;&amp; !key.equals("status")){
                  if(dataSnapshot.child(key).hasChild("itemNumber")){
                       itemN= dataSnapshot.child(key).child("itemNumber").getValue().toString();
                  }
                 ...
                 ... {downloading all data}
                 ...
  
                  itemsClass= new ItemsClass(orderNumber, itemN, discription, pcsCtn, ttlCtn, ctnWt, qty, compileStatus, palletN );
                  itemsClassArrayList.add(itemsClass);
                      adapter.notifyDataSetChanged();
  
              }
  </code></pre>
  
  <p>I'm showing all the data at the <code>adapter</code> , and problem is when I want to update the data <code>onChildAdded</code> is beeing triggered multiple times.</p>
  
  <p>This is the update part in the Adapter:</p>
  
  <pre><code>private void updateData(ViewHolder vh, String orderN){
  
      showOrder.itemsClassArrayList.clear();
          updateStatus="idle";         
      ordersRef.child(orderNumber).child(itemN).child("palletNo").setValue(pallete);
      ordersRef.child(orderNumber).child(itemN).child("pcsPizza").setValue(untCtn);
      ordersRef.child(orderNumber).child(itemN).child("compileStatus").setValue(collected);
      ordersRef.child(orderNumber).child(itemN).child("drink").setValue(ctnWt);
      ordersRef.child(orderNumber).child(itemN).child("ttlWt").setValue(pltWt);
      ordersRef.child(orderNumber).child(itemN).child("ttl").setValue(ttlCtn);
      updateStatus= "update";
      //showOrder.adapter.clear();
  
  }
  </code></pre>
  
  <p>What I discovered is that if i'm updating only one <code>child</code> (Deleting all the others) the <code>onChildAdded</code> will be update only once.
  So i don't understand how can i update all with out multiple Updating, if anyone as an idea.</p>
  
  <p>Thank you</p>