public void detach(AppCompatActivity activity){
  attrViewMaps.remove(activity.hashCode());
}

public void detach ( AppCompatActivity activity ) { attrViewMaps . remove ( activity . hashCode ( ) ) ; }
this method should be called in activity ondestroy method
