Skip to content

Problem with usage in Fragments inside ViewPager #4

@erfannf

Description

@erfannf

When using SugarTask in fragments which are accessed with ViewPager, it makes an IllegalStateException
: Fragment has not been attached yet.

This happens when you select a fragment and the next fragment in viewpager is being initialized but not visible because viewpager offscreen limit was set to 1.

So, how to avoid this?

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