Example usage for android.os Bundle putCharSequence

List of usage examples for android.os Bundle putCharSequence

Introduction

In this page you can find the example usage for android.os Bundle putCharSequence.

Prototype

@Override
public void putCharSequence(@Nullable String key, @Nullable CharSequence value) 

Source Link

Document

Inserts a CharSequence value into the mapping of this Bundle, replacing any existing value for the given key.

Usage

From source file:ca.marklauman.tools.FragmentPopup.java

@Override
public void onSaveInstanceState(Bundle outState) {
    outState.putCharSequence(KEY_MSG, message);
    super.onSaveInstanceState(outState);
}

From source file:can.yrt.onebusaway.ReportStopProblemFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putInt(CODE, mCodeView.getSelectedItemPosition());
    outState.putCharSequence(USER_COMMENT, mUserComment.getText());
}

From source file:io.ordunaleon.lumios.ui.DrawerActivity.java

@Override
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putCharSequence(KEY_STATE_TITLE, getTitle());
}

From source file:com.andremion.louvre.home.GalleryActivity.java

@SuppressWarnings("ConstantConditions")
@Override/*from   w  ww . j a v a  2  s . com*/
protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putCharSequence(TITLE_STATE, getSupportActionBar().getTitle());
}

From source file:android.support.v17.leanback.app.GuidedStepTestSupportFragment.java

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    outState.putCharSequence(KEY_TEST_NAME, mTestName);
    mProvider.onSaveInstanceState(outState);
}

From source file:com.janela.mobile.ui.commit.CommitFileViewActivity.java

private void loadMarkdown() {
    ViewUtils.setGone(loadingBar, false);
    ViewUtils.setGone(codeView, true);//  w ww.  j  a  v a  2 s .  c  o m

    String markdown = new String(EncodingUtils.fromBase64(blob.getContent()));
    Bundle args = new Bundle();
    args.putCharSequence(ARG_TEXT, markdown);
    getSupportLoaderManager().restartLoader(0, args, this);
}

From source file:com.github.pockethub.ui.ref.BranchFileViewActivity.java

private void loadMarkdown() {
    ViewUtils.setGone(loadingBar, false);
    ViewUtils.setGone(codeView, true);/*from  ww w . j av  a 2  s.co m*/

    String markdown = new String(EncodingUtils.fromBase64(blob.content));
    Bundle args = new Bundle();
    args.putCharSequence(ARG_TEXT, markdown);
    args.putParcelable(ARG_REPO, repo);
    getSupportLoaderManager().restartLoader(0, args, this);
}

From source file:com.github.pockethub.ui.commit.CommitFileViewActivity.java

private void loadMarkdown() {
    ViewUtils.setGone(loadingBar, false);
    ViewUtils.setGone(codeView, true);//from  w  ww.jav a  2 s. co m

    String markdown = new String(Base64.decode(blob.content, Base64.DEFAULT));
    Bundle args = new Bundle();
    args.putCharSequence(ARG_TEXT, markdown);
    args.putParcelable(ARG_REPO, repo);
    getSupportLoaderManager().restartLoader(0, args, this);
}

From source file:com.github.mobile.ui.commit.CommitFileViewActivity.java

private void loadMarkdown() {
    ViewUtils.setGone(loadingBar, false);
    ViewUtils.setGone(codeView, true);//  w  ww .  j av a 2 s  .  c o  m

    String markdown = new String(EncodingUtils.fromBase64(blob.getContent()));
    Bundle args = new Bundle();
    args.putCharSequence(ARG_TEXT, markdown);
    args.putSerializable(ARG_REPO, repo);
    getSupportLoaderManager().restartLoader(0, args, this);
}

From source file:com.github.pockethub.android.ui.commit.CommitFileViewActivity.java

private void loadMarkdown() {
    loadingBar.setVisibility(View.VISIBLE);
    codeView.setVisibility(View.GONE);

    String markdown = new String(Base64.decode(blob.content(), Base64.DEFAULT));
    Bundle args = new Bundle();
    args.putCharSequence(ARG_TEXT, markdown);
    args.putParcelable(ARG_REPO, repo);//  w  w w .j a  v  a2s .  c o m
    getSupportLoaderManager().restartLoader(0, args, this);
}