title: Remove multiple Firebase listeners created inside viewHolder
body: <p>How do I remove multiple listeners created for each view item?</p>
  
  <pre><code>            @Override
              protected void populateViewHolder(final MessageViewHolder viewHolder, final Friends msg, int position) {
  
  
                  online = FirebaseDatabase.getInstance().getReference().child("online").child(msg.friend_id);
                      userListener = online.addValueEventListener(new ValueEventListener() {
                          @Override
                          public void onDataChange(DataSnapshot dataSnapshot) {
                              Online online = dataSnapshot.getValue(Online.class);
                              if(online != null){
                                  if (viewHolder.getDiff(online.timestamp) &lt; 1){
                                      viewHolder.donline.setVisibility(View.VISIBLE);
                                      System.out.println("Is online");
                                  } else {
                                      viewHolder.donline.setVisibility(View.GONE);
                                  }
                              }
  
                          }
  
                          @Override
                          public void onCancelled(DatabaseError databaseError) {
  
                          }
  
                      });
  
  
              }
  
          };
  </code></pre>
  
  <p>Upon reopening app it will create a new listener for each item in the viewHolder. How do I deatach them all inside onDestroy?</p>