예제 #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);
 }