// Path: challenge-nine/app/src/main/java/com/reoky/crackme/challengenine/listeners/AboutFragmentOnClickListener.java
// public class AboutFragmentOnClickListener implements View.OnClickListener {
//     @Override
//     public void onClick(View view) {
//         switch (view.getId()) {
//             case R.id.button_quit:
//                 view.setEnabled(false);
//                 System.exit(0);
//         }
//     }
// }


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.reoky.crackme.challengenine.R;
import com.reoky.crackme.challengenine.listeners.AboutFragmentOnClickListener;
package com.reoky.crackme.challengenine.fragments;



public class AboutFragment extends Fragment {

    public AboutFragment() {}

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        // Inflate the view
        View view = inflater.inflate(R.layout.fragment_about, container, false);

        // Handle the quit button being pressed
        final Button quitButton = (Button) view.findViewById(R.id.button_quit);
// Path: challenge-nine/app/src/main/java/com/reoky/crackme/challengenine/listeners/AboutFragmentOnClickListener.java
// public class AboutFragmentOnClickListener implements View.OnClickListener {
//     @Override
//     public void onClick(View view) {
//         switch (view.getId()) {
//             case R.id.button_quit:
//                 view.setEnabled(false);
//                 System.exit(0);
//         }
//     }
// }


// Path: challenge-nine/app/src/main/java/com/reoky/crackme/challengenine/fragments/AboutFragment.java
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import com.reoky.crackme.challengenine.R;
import com.reoky.crackme.challengenine.listeners.AboutFragmentOnClickListener;

package com.reoky.crackme.challengenine.fragments;



public class AboutFragment extends Fragment {

    public AboutFragment() {}

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        // Inflate the view
        View view = inflater.inflate(R.layout.fragment_about, container, false);

        // Handle the quit button being pressed
        final Button quitButton = (Button) view.findViewById(R.id.button_quit);
        quitButton.setOnClickListener(new AboutFragmentOnClickListener());