@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPageNumber = getArguments().getInt(ARG_PAGE); settings = getActivity().getSharedPreferences(FoggyMix.PREF_NAME, 0); app = FoggyMix.getInstance(); }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPageNumber = getArguments().getInt(ARG_PAGE); settings = getActivity().getSharedPreferences(FoggyMix.PREF_NAME, 0); app = FoggyMix.getInstance(); if (challengesList == null) { challengesList = new ArrayList<Challenge>(); } }
private void fillTextViews() { app.setIcon(challenge.getIcon(), imgIcon); app.fillTextViews(txtName, challenge.getName()); }