From 7a23d6ab20b7c7ae1a54084d54288c0d11063a91 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 24 May 2023 04:19:58 -0700 Subject: [PATCH] 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 --- .../flipper/plugins/uidebugger/core/FragmentTracker.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/src/main/java/com/facebook/flipper/plugins/uidebugger/core/FragmentTracker.kt b/android/src/main/java/com/facebook/flipper/plugins/uidebugger/core/FragmentTracker.kt index 38d4a6d34..65e040de8 100644 --- a/android/src/main/java/com/facebook/flipper/plugins/uidebugger/core/FragmentTracker.kt +++ b/android/src/main/java/com/facebook/flipper/plugins/uidebugger/core/FragmentTracker.kt @@ -228,6 +228,7 @@ object FragmentTracker { Class.forName("android.app.FragmentManager\$FragmentLifecycleCallbacks") != null) { frameworkLifecycleTracker = object : android.app.FragmentManager.FragmentLifecycleCallbacks() { + @Deprecated("Deprecated in Java") override fun onFragmentAttached( fm: android.app.FragmentManager?, f: android.app.Fragment?, @@ -240,6 +241,7 @@ object FragmentTracker { } } + @Deprecated("Deprecated in Java") override fun onFragmentViewCreated( fm: android.app.FragmentManager?, f: android.app.Fragment?, @@ -253,6 +255,7 @@ object FragmentTracker { } } + @Deprecated("Deprecated in Java") override fun onFragmentDetached( fm: android.app.FragmentManager?, f: android.app.Fragment?