Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onCreate called everytime for fragment #9

Open
philipgiuliani opened this issue Nov 25, 2015 · 0 comments
Open

onCreate called everytime for fragment #9

philipgiuliani opened this issue Nov 25, 2015 · 0 comments

Comments

@philipgiuliani
Copy link

Hi, i have extended RowsFragment for the BrowseFragment, everytime when i select the view in the navigation (left side) the onCreate, onCreateView, onViewCreated methods of the fragment are called again, but the global variables persist...

Currently i have the following in my onCreate:

// load data
if (mRecordedBroadcasts == null) {
    mArchiveCall = mApp.getService().archivedBroadcasts();
    mArchiveCall.enqueue(this);
} else {
    loadRows();
}

In my case mRecordedBroadcasts is only null the first time. So why is onCreate called everytime if its already initialized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant