OSDN Git Service

Add FragmentLifecycleCallbacks
authorAdam Powell <adamp@google.com>
Fri, 28 Oct 2016 17:24:40 +0000 (10:24 -0700)
committerAdam Powell <adamp@google.com>
Fri, 28 Oct 2016 21:59:54 +0000 (14:59 -0700)
commit38c67ff93b44b476531d6727bcb00c712cc83bbd
treed2704fb487d996625fde2a54a7619ae96d89e6de
parent71a7b9ad7cd6286e2f4cd4141344a17fa9d3038d
Add FragmentLifecycleCallbacks

Add a new callback object that can be attached to a FragmentManager to
observe all fragment lifecycle events within that
FragmentManager. Useful for dependency injection and other
shenanigans.

FragmentLifecycleCallbacks can be registered as recursive, in which
case they will be activated for any lifecycle events that happen in
descendant FragmentManagers as well.

Test: cts-tradefed run singleCommand cts --skip-preconditions --skip-device-info --module CtsFragmentTestCases
Change-Id: I816b1fbef6c29616ccc3fd729ee847c5f1a6f72f
api/current.txt
api/system-current.txt
api/test-current.txt
core/java/android/app/FragmentManager.java