Skip to content

onCreate called everytime for fragment #9

Description

@philipgiuliani

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions