//TODO: see if we can be more error-tolerance
@Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
            Bundle args = getArguments();
            TierCategory category = (TierCategory) args.getSerializable("category");
            String tier = args.getString("tier");
            // Inflate the layout for this fragment
            View view = inflater.inflate(R.layout.fragment_tier_list, container, false);
            LinearLayout layout = (LinearLayout) view.findViewById(R.id.tier_layout);
            try {//TODO: see if we can be more error-tolerance
                myTask = new PopulateTierTableAsyncTask(getActivity(), layout, category).execute(tier);
            } catch (Exception e) {
                e.printStackTrace();
            }
            return view;
        }
View view = inflater.inflate(R.layout.fragment_tier_list, container, false);
LinearLayout layout = (LinearLayout) view.findViewById(R.id.tier_layout);
try {//TODO: see if we can be more error-tolerance
myTask = new PopulateTierTableAsyncTask(getActivity(), layout, category).execute(tier);
} catch (Exception e) {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Bundle args = getArguments();
TierCategory category = (TierCategory) args.getSerializable("category");
String tier = args.getString("tier");
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_tier_list, container, false);
LinearLayout layout = (LinearLayout) view.findViewById(R.id.tier_layout);
try {//TODO: see if we can be more error-tolerance
myTask = new PopulateTierTableAsyncTask(getActivity(), layout, category).execute(tier);
} catch (Exception e) {
e.printStackTrace();
}
return view;
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
Bundle args = getArguments();
TierCategory category = (TierCategory) args.getSerializable("category");
String tier = args.getString("tier");
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_tier_list, container, false);
LinearLayout layout = (LinearLayout) view.findViewById(R.id.tier_layout);
try {//TODO: see if we can be more error-tolerance
myTask = new PopulateTierTableAsyncTask(getActivity(), layout, category).execute(tier);
} catch (Exception e) {
e.printStackTrace();
}
return view;
}