public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   Log.i(TAG, "onSaveInstanceState()");
   if (mTicket != null) {
     outState.putString("mTitle", mTicket.getTitle());
     outState.putString("mLogin", mTicket.getLogin());
     outState.putString("mPassword", mTicket.getPassword());
     outState.putString("mNotes", mTicket.getNotes());
   }
   outState.putInt("mId", id);
 }
  private void initUI() {
    Log.i(TAG, "initUI()");
    mTitle = (TextView) getView().findViewById(R.id.tv_title);
    mLogin = (TextView) getView().findViewById(R.id.tv_login_data);
    mPassword = (TextView) getView().findViewById(R.id.tv_password_data);
    mNotes = (TextView) getView().findViewById(R.id.tv_notes_data);

    if (mTicket != null) {
      mTitle.setText(mTicket.getTitle());
      mLogin.setText(mTicket.getLogin());
      mPassword.setText(mTicket.getPassword());
      mNotes.setText(mTicket.getNotes());
    }
  }