private void assurePlayerInit() { PreferenceHelper.clearPerson(getActivity()); if (null == mPerson) { mPerson = PreferenceHelper.getPerson(getActivity()); } }
private void savePerson(Activity activity) { mPerson = new Person(mFirstName.getText().toString(), mSelectedAvatar); PreferenceHelper.writeToPreferences(activity, mPerson); }