/*
 * Copyright 2013-2015 The GDG Frisbee Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.gdg.frisbee.android.onboarding;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import org.gdg.frisbee.android.R;
import org.gdg.frisbee.android.common.BaseFragment;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class FirstStartStep2Fragment extends BaseFragment {

    Step2Listener listener = Step2Listener.EMPTY;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_welcome_step2, container, false);
        ButterKnife.bind(this, v);
        return v;
    }

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);

        if (context instanceof Step2Listener) {
            listener = (Step2Listener) context;
        }
    }

    @Override
    public void onDetach() {
        super.onDetach();

        listener = Step2Listener.EMPTY;
    }

    @OnClick(R.id.googleSignin)
    public void onSignedIn() {
        listener.onSignedIn();
    }

    @OnClick(R.id.skipSignin)
    public void onSkippedSignIn() {
        listener.onSkippedSignIn();
    }

    public interface Step2Listener {
        void onSignedIn();

        void onSkippedSignIn();

        Step2Listener EMPTY = new Step2Listener() {
            @Override
            public void onSignedIn() {
            }

            @Override
            public void onSkippedSignIn() {
            }
        };
    }
}

@@ -802,38 +802,8 @@
 oup;
-%0Aimport android.widget.Button;
 %0A%0Aim
@@ -891,33 +891,8 @@
 t;%0A%0A
-import butterknife.Bind;%0A
 impo

remove unused imports