Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Bind view in retained Fragment #5

@damianpetla

Description

@damianpetla

@JakeWharton I was wondering if you tried to handle binding views in retained Fragments?

I will explain the problem to everyone else:
When you set your fragment retained calling setRetainInstance(true) view properties once created are kept in memory after fragment layout is re-created e.g. screen orientation changes. It means that after orientation change properties points to the view from the old invalid layout reference.
With java ButterKnife you have to call inject() in respective fragment method callback. In case this library injection is done automatically whenever view is used for the first time.

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