You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 12, 2019. It is now read-only.
@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.
@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.