// Path: challenge-ten/app/src/main/java/com/reoky/crackme/challengeten/fragments/AboutFragment.java
// 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());
// 
//         return view;
//     }
// 
// }
// 
// Path: challenge-ten/app/src/main/java/com/reoky/crackme/challengeten/fragments/ChallengeTenFragment.java
// public class ChallengeTenFragment extends Fragment {
// 
//     public ChallengeTenFragment() {}
// 
//     @Override
//     public void onActivityCreated(Bundle savedInstanceState) {
//         super.onActivityCreated(savedInstanceState);
//         final InputMethodManager immy = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
//         immy.hideSoftInputFromWindow(getView().getWindowToken(), 0);
//     }
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View view = inflater.inflate(R.layout.fragment_challenge_one, container, false);
// 
//         // Handle the user checking their answer
//         final Button buttonCheck = (Button) view.findViewById(R.id.challenge_one_button_check);
//         buttonCheck.setOnClickListener(new ChallengeTenFragmentOnClickListener());
// 
//         // Wire button_write_file to ChallengeTenFragmentOnClickListener()
//         final Button buttonWriteFile = (Button) view.findViewById(R.id.button_write_file);
//         buttonWriteFile.setOnClickListener(new ChallengeTenFragmentOnClickListener());
// 
//         // Sometimes it takes someone outside the box to see why we really need a box at all
//         // think about it...
//         File file = view.getContext().getFileStreamPath("ANSWER");
//         if (file.exists()) {
//             buttonWriteFile.setText(R.string.string_challenge_delete_file);
//         } else {
//             buttonWriteFile.setText(R.string.string_challenge_write_file);
//         }
// 
//         return view;
//     }
// }


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.reoky.crackme.challengeten.fragments.AboutFragment;
import com.reoky.crackme.challengeten.fragments.ChallengeTenFragment;
import com.reoky.crackme.challengeten.fragments.HintFragment;
package com.reoky.crackme.challengeten.adaptors;



public class ChallengePagerAdapter extends FragmentPagerAdapter {

    public ChallengePagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        switch (position) {
            case 0:
                return new ChallengeTenFragment();
            case 1:
                return new HintFragment();
            default:
// Path: challenge-ten/app/src/main/java/com/reoky/crackme/challengeten/fragments/AboutFragment.java
// 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());
// 
//         return view;
//     }
// 
// }
// 
// Path: challenge-ten/app/src/main/java/com/reoky/crackme/challengeten/fragments/ChallengeTenFragment.java
// public class ChallengeTenFragment extends Fragment {
// 
//     public ChallengeTenFragment() {}
// 
//     @Override
//     public void onActivityCreated(Bundle savedInstanceState) {
//         super.onActivityCreated(savedInstanceState);
//         final InputMethodManager immy = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
//         immy.hideSoftInputFromWindow(getView().getWindowToken(), 0);
//     }
// 
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//         View view = inflater.inflate(R.layout.fragment_challenge_one, container, false);
// 
//         // Handle the user checking their answer
//         final Button buttonCheck = (Button) view.findViewById(R.id.challenge_one_button_check);
//         buttonCheck.setOnClickListener(new ChallengeTenFragmentOnClickListener());
// 
//         // Wire button_write_file to ChallengeTenFragmentOnClickListener()
//         final Button buttonWriteFile = (Button) view.findViewById(R.id.button_write_file);
//         buttonWriteFile.setOnClickListener(new ChallengeTenFragmentOnClickListener());
// 
//         // Sometimes it takes someone outside the box to see why we really need a box at all
//         // think about it...
//         File file = view.getContext().getFileStreamPath("ANSWER");
//         if (file.exists()) {
//             buttonWriteFile.setText(R.string.string_challenge_delete_file);
//         } else {
//             buttonWriteFile.setText(R.string.string_challenge_write_file);
//         }
// 
//         return view;
//     }
// }


// Path: challenge-ten/app/src/main/java/com/reoky/crackme/challengeten/adaptors/ChallengePagerAdapter.java
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.reoky.crackme.challengeten.fragments.AboutFragment;
import com.reoky.crackme.challengeten.fragments.ChallengeTenFragment;
import com.reoky.crackme.challengeten.fragments.HintFragment;

package com.reoky.crackme.challengeten.adaptors;



public class ChallengePagerAdapter extends FragmentPagerAdapter {

    public ChallengePagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        switch (position) {
            case 0:
                return new ChallengeTenFragment();
            case 1:
                return new HintFragment();
            default:
                return new AboutFragment();