Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8a88cd6f authored by Ian Lake's avatar Ian Lake
Browse files

Add Activity.registerActivityLifecycleCallbacks()

As an alternative to requiring developers
register/unregister ActivityLifecycleCallbacks
at the Application level, provide the same API
at the Activity level.

This allows you to get lifecycle callbacks scoped
to only a single Activity without overriding
each individual callback.

The callbacks are purposefully nested within
the Application scoped ActivityLifecycleCallbacks.

Test: new CTS test
BUG: 116118635
Change-Id: Iab6d841019010a0bf9d91fe889db82e0135b4b9c
parent 9ab9d46a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment