Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 1cfdd92

Browse files
committed
Add LifecycleOwner interface to FragmentActivity
1 parent 1121131 commit 1cfdd92

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

support-fragment/source/Transforms/Metadata.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,11 @@
99
<remove-node path="/api/package[@name='android.support.v4.app']/class[@name='FragmentActivity']/method[@name='onRequestPermissionsResult' and count(parameter)=3 and parameter[1][@type='int'] and parameter[2][@type='java.lang.String[]'] and parameter[3][@type='int[]']]" />
1010

1111
<remove-node path="/api/package[@name='android.support.v4.app']/interface[@name='Fragment.OnStartEnterTransitionListener']" />
12+
13+
<add-node path="/api/package[@name='android.support.v4.app']/class[@name='FragmentActivity']">
14+
<implements name="android.arch.lifecycle.LifecycleOwner" name-generic-aware="android.arch.lifecycle.LifecycleOwner">
15+
</implements>
16+
<method abstract="false" deprecated="not deprecated" final="false" name="getLifecycle" native="false" return="android.arch.lifecycle.Lifecycle" static="false" synchronized="false" visibility="public">
17+
</method>
18+
</add-node>
1219
</metadata>

0 commit comments

Comments
 (0)