<commit_before>package ir.asparsa.hobbytaste.ui.list.holder;

import android.os.Bundle;
import android.view.View;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapView;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.model.*;
import ir.asparsa.android.core.logger.L;
import ir.asparsa.android.ui.list.holder.BaseViewHolder;
import ir.asparsa.hobbytaste.R;
import ir.asparsa.hobbytaste.core.util.MapUtil;
import ir.asparsa.hobbytaste.database.model.StoreModel;
import ir.asparsa.hobbytaste.ui.list.data.StoreMapData;

/**
 * @author hadi
 * @since 12/7/2016 AD
 */
public class StoreMapViewHolder extends BaseViewHolder<StoreMapData> implements OnMapReadyCallback {

    public static final String MAP_FRAGMENT_TAG = "GoogleMapTag";

    @BindView(R.id.map)
    MapView mMapView;

    private GoogleMap mMap;
    private StoreModel mStore;
    private Marker mMarker;
    private boolean mIsCameraMovedBefore = false;

    public StoreMapViewHolder(View itemView, Bundle savedInstanceState) {
        super(itemView, savedInstanceState);
        ButterKnife.bind(this, itemView);

        mMapView.onCreate(savedInstanceState);
        mMapView.onResume();
        mMapView.getMapAsync(this);
    }

    @Override
    public void onBindView(StoreMapData data) {
        mStore = data.getStore();
        fillMap();
        L.i(this.getClass(), "Bound");
    }

    @Override
    public void onMapReady(GoogleMap googleMap) {
        L.i(this.getClass(), "On map ready called");
        mMap = googleMap;
        fillMap();
    }<commit_msg>Fix bug on enable the map in details to move cammera<commit_after>package ir.asparsa.hobbytaste.ui.list.holder;

import android.os.Bundle;
import android.view.View;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapView;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.model.*;
import ir.asparsa.android.core.logger.L;
import ir.asparsa.android.ui.list.holder.BaseViewHolder;
import ir.asparsa.hobbytaste.R;
import ir.asparsa.hobbytaste.core.util.MapUtil;
import ir.asparsa.hobbytaste.database.model.StoreModel;
import ir.asparsa.hobbytaste.ui.list.data.StoreMapData;

/**
 * @author hadi
 * @since 12/7/2016 AD
 */
public class StoreMapViewHolder extends BaseViewHolder<StoreMapData> implements OnMapReadyCallback {

    public static final String MAP_FRAGMENT_TAG = "GoogleMapTag";

    @BindView(R.id.map)
    MapView mMapView;

    private GoogleMap mMap;
    private StoreModel mStore;
    private Marker mMarker;
    private boolean mIsCameraMovedBefore = false;

    public StoreMapViewHolder(View itemView, Bundle savedInstanceState) {
        super(itemView, savedInstanceState);
        ButterKnife.bind(this, itemView);

        mMapView.onCreate(savedInstanceState);
        mMapView.onResume();
        mMapView.getMapAsync(this);
    }

    @Override
    public void onBindView(StoreMapData data) {
        mStore = data.getStore();
        fillMap();
        L.i(this.getClass(), "Bound");
    }

    @Override
    public void onMapReady(GoogleMap googleMap) {
        L.i(this.getClass(), "On map ready called");
        mMap = googleMap;
        mMap.getUiSettings().setScrollGesturesEnabled(false);
        fillMap();
    }
{'fraction_non_alphanumeric': 0.10569105691056911, 'fraction_numerical': 0.003924866834875245, 'mean_word_length': 3.847826086956522, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5328365', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1142, 'n_words': 213}