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