From b87304b2ecda832289f1b8bf875f224c6a50522c Mon Sep 17 00:00:00 2001 From: limciana Date: Fri, 23 Mar 2018 14:42:52 +0800 Subject: [PATCH] db --- .../app/src/main/java/com/cs192/upcc/InputSubjectFragment.java | 2 +- .../src/main/java/com/cs192/upcc/SelectCurriculumFragment.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Android Studio Files/app/src/main/java/com/cs192/upcc/InputSubjectFragment.java b/Android Studio Files/app/src/main/java/com/cs192/upcc/InputSubjectFragment.java index 9311f76..ebd1b4b 100644 --- a/Android Studio Files/app/src/main/java/com/cs192/upcc/InputSubjectFragment.java +++ b/Android Studio Files/app/src/main/java/com/cs192/upcc/InputSubjectFragment.java @@ -198,7 +198,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, /* Pass title to the activity, receive curriculum from the activity */ passTitle("Mark Subjects"); curriculum = ((MainDrawer) getActivity()).getCurriculum(); - Log.d("curriculum", curriculum.getName()); + //Log.d("curriculum", curriculum.getName()); // Inflate the layout for this fragment UPCCdb = new DatabaseHelper(getActivity()); UPCCdb.createDB(); diff --git a/Android Studio Files/app/src/main/java/com/cs192/upcc/SelectCurriculumFragment.java b/Android Studio Files/app/src/main/java/com/cs192/upcc/SelectCurriculumFragment.java index a382c6d..87d2e07 100644 --- a/Android Studio Files/app/src/main/java/com/cs192/upcc/SelectCurriculumFragment.java +++ b/Android Studio Files/app/src/main/java/com/cs192/upcc/SelectCurriculumFragment.java @@ -135,7 +135,6 @@ public void onAttach(Context context) { @Override public void onDetach() { super.onDetach(); - getCurriculumFromList(false); } /* @@ -230,7 +229,6 @@ public void onClick(View view) { /* Setup the first curriculum to be the default on start of the activity */ CheckBox init = v.findViewById(1); init.toggle(); - getCurriculumFromList(false); return v; } /*