https://kotlinlang.org logo
#android
Title
# android
s

scruffyfox

08/10/2017, 10:39 AM
i think it has something to do with
addToBackStack
because if i change the code so its always replacing the fragment (overridden the
onBackPressed
method) then its fine, real weird
s

sandwwraith

08/10/2017, 10:57 AM
Check out this issue, maybe it's your case: https://github.com/JakeWharton/kotterknife/issues/5 TL;DR: try to do
KotterKnife.reset(this)
if yours fragment.onViewCreated
s

scruffyfox

08/10/2017, 12:14 PM
yeah that fixes it, i didnt pay attention to that issue because it was specifically refering to retained fragments which im not using, but still fixed it 👍
s

sandwwraith

08/10/2017, 12:57 PM
I think it's related to every fragment which can be bound to view more than one time - fields don't get updated
2 Views