コード例 #1
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   if (courseData != null) outState.putSerializable(Router.EXTRA_ENROLLMENT, courseData);
   if (courseComponentId != null)
     outState.putString(Router.EXTRA_COURSE_COMPONENT_ID, courseComponentId);
   super.onSaveInstanceState(outState);
 }
  @Override
  public void onSaveInstanceState(Bundle outState) {

    Set<Long> toInvite = friendListAdapter.getSelectedList();
    Long inviteLongArray[] = toInvite.toArray(new Long[toInvite.size()]);

    Set<Long> alreadyGrouped = friendListAdapter.getAlreadyInGroupList();
    Long alreadyGroupedLongArray[] = alreadyGrouped.toArray(new Long[alreadyGrouped.size()]);

    outState.putParcelableArrayList(
        FRIEND_LIST_MODELS, new ArrayList<Parcelable>(friendListAdapter.getItems()));
    outState.putLongArray(FRIEND_LIST_STATES, JavaUtil.toPrimitive(inviteLongArray));
    outState.putLongArray(
        FRIEND_LIST_ALREADY_IN_GROUP, JavaUtil.toPrimitive(alreadyGroupedLongArray));

    super.onSaveInstanceState(outState);
  }
コード例 #3
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   uiLifecycleHelper.onSaveInstanceState(outState);
 }