コード例 #1
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   if (mActivatedPosition != ListView.INVALID_POSITION) {
     outState.putInt(STATE_ACTIVATED_POSITION, mActivatedPosition);
   }
 }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   if (mActivatedPosition != ListView.INVALID_POSITION) {
     // Serialize and persist the activated item position.
     outState.putInt(STATE_ACTIVATED_POSITION, mActivatedPosition);
   }
 }
コード例 #3
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putString("TAG", TAG);
   outState.putInt("countOk", countOk);
   outState.putParcelable("playerOne", player1);
   outState.putParcelable("playerTwo", player2);
 }
コード例 #4
0
  @Override
  public void onSaveInstanceState(Bundle outState) {

    super.onSaveInstanceState(outState);

    if (mBalanceText != null) {
      outState.putString("balance_text", mBalanceText.getText().toString());
      outState.putString("balance_currency", mBalanceCurrency.getText().toString());
    }
  }
コード例 #5
0
  @Override
  public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    if (!TextUtils.isEmpty(mSearchTerm)) {
      // Saves the current search string
      outState.putString(SearchManager.QUERY, mSearchTerm);

      // Saves the currently selected contact
      outState.putInt(STATE_PREVIOUSLY_SELECTED_KEY, getListView().getCheckedItemPosition());
    }
  }
コード例 #6
0
  @Override
  public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);

    // BEGIN_INCLUDE(save_instance)
    // Allow the Controller to save it's instance state so that any checked items are
    // stored
    if (mMultiSelectController != null) {
      mMultiSelectController.saveInstanceState(outState);
    }
    // END_INCLUDE(save_instance)
  }
コード例 #7
0
ファイル: TitlesFragment.java プロジェクト: semenoh/HabrQA
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putInt("curChoice", mCurCheckPosition);
 }
コード例 #8
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   mUiHelper.onSaveInstanceState(outState);
 }
コード例 #9
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putLong(CURRENT_CHOICE, curCheckPosition);
 }
コード例 #10
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putInt(STATE_CHECKED_POSITION, mCheckedPosition);
 }
コード例 #11
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   Icepick.saveInstanceState(this, outState);
 }
コード例 #12
0
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   outState.putSerializable(MATCH_STATE, (Serializable) matches);
 }