Copy deprecation note (#4756)

Summary:
[android] Copy deprecation note
Ran the Kotlin migration process. They recommend we carry forwards these warnings.

Pull Request resolved: https://github.com/facebook/flipper/pull/4756

Test Plan:
- CI

 ---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/flipper/pull/4756).
* https://github.com/facebook/flipper/issues/4759
* https://github.com/facebook/flipper/issues/4758
* https://github.com/facebook/flipper/issues/4757
* __->__ https://github.com/facebook/flipper/issues/4756
* https://github.com/facebook/flipper/issues/4755
* https://github.com/facebook/flipper/issues/4754
* https://github.com/facebook/flipper/issues/4753
* https://github.com/facebook/flipper/issues/4752
* https://github.com/facebook/flipper/issues/4751

Reviewed By: ivanmisuno

Differential Revision: D46068989

Pulled By: passy

fbshipit-source-id: 7011939d9a3970376348c5b03e2352719aff3948
This commit is contained in:
Pascal Hartig
2023-05-24 04:19:58 -07:00
committed by Facebook GitHub Bot
parent 56aecba339
commit 7a23d6ab20

View File

@@ -228,6 +228,7 @@ object FragmentTracker {
Class.forName("android.app.FragmentManager\$FragmentLifecycleCallbacks") != null) { Class.forName("android.app.FragmentManager\$FragmentLifecycleCallbacks") != null) {
frameworkLifecycleTracker = frameworkLifecycleTracker =
object : android.app.FragmentManager.FragmentLifecycleCallbacks() { object : android.app.FragmentManager.FragmentLifecycleCallbacks() {
@Deprecated("Deprecated in Java")
override fun onFragmentAttached( override fun onFragmentAttached(
fm: android.app.FragmentManager?, fm: android.app.FragmentManager?,
f: android.app.Fragment?, f: android.app.Fragment?,
@@ -240,6 +241,7 @@ object FragmentTracker {
} }
} }
@Deprecated("Deprecated in Java")
override fun onFragmentViewCreated( override fun onFragmentViewCreated(
fm: android.app.FragmentManager?, fm: android.app.FragmentManager?,
f: android.app.Fragment?, f: android.app.Fragment?,
@@ -253,6 +255,7 @@ object FragmentTracker {
} }
} }
@Deprecated("Deprecated in Java")
override fun onFragmentDetached( override fun onFragmentDetached(
fm: android.app.FragmentManager?, fm: android.app.FragmentManager?,
f: android.app.Fragment? f: android.app.Fragment?