Removed unused logger

This commit is contained in:
Caesar2011
2018-07-05 01:19:14 +02:00
parent a2964c9c77
commit 6b66b33dc5
3 changed files with 4 additions and 9 deletions

View File

@@ -33,6 +33,10 @@ import de.sebse.fuplanner.tools.logging.Logger;
* to handle interaction events. * to handle interaction events.
* Use the {@link ScheduleFragment#newInstance} factory method to * Use the {@link ScheduleFragment#newInstance} factory method to
* create an instance of this fragment. * create an instance of this fragment.
*
* TODO Reduce day range to 6-20h as in https://stackoverflow.com/questions/35944431/filter-specific-range-of-hours-to-show-in-alamkanak-android-week-view
*
* TODO Scroll week wise (snap)
*/ */
public class ScheduleFragment extends Fragment implements WeekView.EventClickListener, MonthLoader.MonthChangeListener, WeekView.EventLongPressListener { public class ScheduleFragment extends Fragment implements WeekView.EventClickListener, MonthLoader.MonthChangeListener, WeekView.EventLongPressListener {
private OnFragmentInteractionListener mListener; private OnFragmentInteractionListener mListener;
@@ -50,7 +54,6 @@ public class ScheduleFragment extends Fragment implements WeekView.EventClickLis
* *
* @return A new instance of fragment ScheduleFragment. * @return A new instance of fragment ScheduleFragment.
*/ */
// TODO: Rename and change types and number of parameters
public static ScheduleFragment newInstance() { public static ScheduleFragment newInstance() {
ScheduleFragment fragment = new ScheduleFragment(); ScheduleFragment fragment = new ScheduleFragment();
Bundle args = new Bundle(); Bundle args = new Bundle();

View File

@@ -31,7 +31,6 @@ public class ModDetailFragment extends Fragment {
private int mItemPos; private int mItemPos;
private OnModuleDetailFragmentInteractionListener mListener; private OnModuleDetailFragmentInteractionListener mListener;
private Logger log = new Logger(this);
public ModDetailFragment() { public ModDetailFragment() {
// Required empty public constructor // Required empty public constructor
@@ -50,7 +49,6 @@ public class ModDetailFragment extends Fragment {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putInt(ARG_POSITION, itemPosition); args.putInt(ARG_POSITION, itemPosition);
fragment.setArguments(args); fragment.setArguments(args);
Log.d("ModDetailFragment", "newInstance");
return fragment; return fragment;
} }
@@ -60,14 +58,12 @@ public class ModDetailFragment extends Fragment {
if (getArguments() != null) { if (getArguments() != null) {
mItemPos = getArguments().getInt(ARG_POSITION); mItemPos = getArguments().getInt(ARG_POSITION);
} }
log.d("on create");
} }
@Override @Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) { Bundle savedInstanceState) {
// Inflate the layout for this fragment // Inflate the layout for this fragment
log.d("on create view");
View v = inflater.inflate(R.layout.fragment_mod_detail, container, false); View v = inflater.inflate(R.layout.fragment_mod_detail, container, false);
ViewPager vpPager = v.findViewById(R.id.vpPager); ViewPager vpPager = v.findViewById(R.id.vpPager);

View File

@@ -27,7 +27,6 @@ public class ModDetailOverviewFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match // TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER // the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_POSITION = "itemPosition"; private static final String ARG_POSITION = "itemPosition";
private static Logger slog = new Logger(ModDetailOverviewFragment.class);
// TODO: Rename and change types of parameters // TODO: Rename and change types of parameters
private int mItemPos; private int mItemPos;
@@ -53,14 +52,12 @@ public class ModDetailOverviewFragment extends Fragment {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putInt(ARG_POSITION, itemPosition); args.putInt(ARG_POSITION, itemPosition);
fragment.setArguments(args); fragment.setArguments(args);
slog.d("new Instance");
return fragment; return fragment;
} }
@Override @Override
public void onCreate(Bundle savedInstanceState) { public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
log.d("on create");
if (getArguments() != null) { if (getArguments() != null) {
mItemPos = getArguments().getInt(ARG_POSITION); mItemPos = getArguments().getInt(ARG_POSITION);
} }
@@ -70,7 +67,6 @@ public class ModDetailOverviewFragment extends Fragment {
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) { Bundle savedInstanceState) {
// Inflate the layout for this fragment // Inflate the layout for this fragment
log.d("on create");
View view = inflater.inflate(R.layout.fragment_mod_detail_overview, container, false); View view = inflater.inflate(R.layout.fragment_mod_detail_overview, container, false);
// Set the adapter // Set the adapter
Context context = view.getContext(); Context context = view.getContext();