]> git.ktnx.net Git - mobile-ledger.git/commit
profile details fragment: move setup from onCreate to onActivityCreated
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 19 Dec 2019 20:05:56 +0000 (22:05 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 19 Dec 2019 20:05:56 +0000 (22:05 +0200)
commit35f511dbf3d90942c33c9524e891dfdbcde4579e
tree86a84d788e14d5b8b3922b4d855f4b6ea346a2d4
parent5b1ffce81ec1a7b64eb98db818eddd9a4dd43418
profile details fragment: move setup from onCreate to onActivityCreated

this is what the docs suggest and it fixes a problem with the toolbar
title changing to from profile name to 'Profile details' when the screen
is rotated. This is because the title is set during the setup and onCreate
isn't necessarily run when the screen is rotated (contrary to
onActivityCreated which is re-run since the activity is re-created on
reconfiguration (of which screen rotation is an instance))
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java