package org.forestguardian.View.Fragments;

import android.app.Fragment;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import org.forestguardian.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by emma on 30/04/17.
 */

public class ReportLocalizationFragment extends Fragment {

    public interface OnReportLocalizationListener{
        void reportLocationReady();
    }

    @BindView(R.id.next_btn) FloatingActionButton mNextButton;

    private OnReportLocalizationListener mListener;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.map_bottom_report_localization, container, false);
        ButterKnife.bind(this, view);
        return view;
    }

    @OnClick(R.id.next_btn)
    public void onNextBtnClick(){
        if (mListener != null){
            mListener.reportLocationReady();
        }
        mListener.reportLocationReady();
    }

    public OnReportLocalizationListener getListener() {
        return mListener;
    }

    public void setListener(final OnReportLocalizationListener pListener) {
        mListener = pListener;
    }
}

@@ -1188,49 +1188,8 @@
   %7D%0A
-        mListener.reportLocationReady();%0A
     

Fix AddReportActivity being called two times.