@@ -0,0 +1,2046 @@
+package com.github.keaume.amigo.fragment;%0A%0Aimport android.os.Bundle;%0Aimport android.support.v4.app.Fragment;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ListView;%0A%0Aimport java.util.ArrayList;%0A%0Aimport com.github.keaume.amigo.R;%0Aimport com.github.keaume.amigo.interfaces.SetActionBarTitleInterface;%0Aimport com.github.keaume.amigo.interfaces.SetSelectedDrawerMenuItemInterface;%0Aimport com.github.keaume.amigo.sql.Obd2FunDataSource;%0Aimport com.github.keaume.amigo.sql.SavedVehicles;%0Aimport com.github.keaume.amigo.ui.VehicleListViewAdapter;%0Aimport timber.log.Timber;%0A%0Apublic class ManageVehiclesFragment extends Fragment %7B%0A%0A    @Override%0A    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) %7B%0A        Timber.d(%22onCreateView called%22);%0A        View view = inflater.inflate(R.layout.manage_vehicles_fragment, container, false);%0A        Obd2FunDataSource dataSource = new Obd2FunDataSource(getActivity().getApplicationContext());%0A%0A        Timber.d(%22Fill list with saved vehicles%22);%0A        ArrayList%3CSavedVehicles%3E vehicleList = dataSource.getAllSavedVehicles();%0A        ListView vehicleListView = (ListView) view.findViewById(R.id.vehicle_list);%0A        vehicleListView.setEmptyView(view.findViewById(R.id.no_vehicle_text));%0A        VehicleListViewAdapter vehicleListViewAdapter = new VehicleListViewAdapter(getActivity(), vehicleList);%0A        vehicleListView.setAdapter(vehicleListViewAdapter);%0A%0A        // Inflate the layout for this fragment%0A        return view;%0A    %7D%0A%0A    @Override%0A    public void onResume() %7B%0A        Timber.d(%22onResume called%22);%0A        super.onResume();%0A        // Set title%0A        ((SetActionBarTitleInterface)getActivity()).setActionBarTitle(getString(R.string.main_activity_drawer_menu_manage_vehicles));%0A        // Set selected menuItem in navigation drawer%0A        ((SetSelectedDrawerMenuItemInterface)getActivity()).setSelectedDrawerMenuItem(R.id.main_activity_drawer_menu_manage_vehicles);%0A    %7D%0A%0A%7D%0A

Create ManageVehiclesFragment.java