package com.upmoon.alexanderbean.barcrawlr.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Toast;

import com.upmoon.alexanderbean.barcrawlr.BarCrawler;
import com.upmoon.alexanderbean.barcrawlr.R;


public class PeopleListFragment extends Fragment {


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View v =  inflater.inflate(R.layout.fragment_people_list, container, false);

        final Button addPeopleButton = (Button) v.findViewById(R.id.add_people_button);
        addPeopleButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                Toast.makeText(getActivity(), "Feature not yet implemented", Toast.LENGTH_LONG).show();
            }
        });

        /*
        final Button publishButton = (Button) v.findViewById(R.id.publish_button);
        publishButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                FragmentManager fm = getActivity().getSupportFragmentManager();
                FragmentTransaction transaction = fm.beginTransaction();
                transaction.replace(R.id.main_content, new BarCrawler());
                transaction.commit();
            }
        });
        */

        return v;
    }

}

@@ -1162,32 +1162,76 @@
 Click(View v) %7B%0A
+                // TODO: Add users to plan.%0A
                 
@@ -1349,19 +1349,8 @@
 );%0A%0A
-        /*%0A
     
@@ -1560,253 +1560,136 @@
     
-FragmentManager fm = getActivity().getSupportFragmentManager();%0A                FragmentTransaction transaction = fm.beginTransaction();%0A                transaction.replace(R.id.main_content, new BarCrawler());%0A                transaction.commit
+// TODO: Publish the plan.%0A                Toast.makeText(getActivity(), %22Feature not yet implemented%22, Toast.LENGTH_SHORT).show
 ();%0A
@@ -1717,19 +1717,8 @@
  %7D);
-%0A        */
 %0A%0A  

Update PeopleListFragment.java