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