summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2016-01-14 12:58:23 -0800
committerAdam Powell <adamp@google.com>2016-01-21 10:38:52 -0800
commit592df7d8c61c350033ee35062b12c7d66b9a7c8c (patch)
treef3e9caa78f0111bb6a47da76746ee9a840ef5eb9 /tools/aapt2/java/JavaClassGenerator.cpp
parent395371c1d79e2c010b1bf18b34a70b7609c0fdf4 (diff)
Init child fragments consistently with activity fragments
Fragments contained within an activity are restored from instance state in FragmentActivity.onCreate, but fragments contained within another fragment were previously restored from instance state in performCreate after onCreate returned. This meant that developers couldn't consistently rely on being able to control when this happens with a call to super.onCreate, and calls to findFragmentByTag to reconnect with a restored child fragment would fail in ways that succeed when the fragment is directly added to an activity. Change child fragment instance state restore to happen during Fragment.onCreate instead of in performCreate to be consistent with activity behavior. Preserve the old behavior for apps targeting an SDK version < N. Change-Id: I9c88d5554da9a32219d64c70ca638f75ecb233ed
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions