From 86d4c5a55fe44e2461c901264d35bb2156da106e Mon Sep 17 00:00:00 2001 From: Jeremy Dubreil Date: Thu, 18 Apr 2019 07:33:47 -0700 Subject: [PATCH] [infer] make the Fragment Retains View checker support the androidx Fragment class name Reviewed By: ezgicicek Differential Revision: D14957071 fbshipit-source-id: 9d8ef443e --- infer/src/checkers/androidFramework.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infer/src/checkers/androidFramework.ml b/infer/src/checkers/androidFramework.ml index 1774da730..64f738ec1 100644 --- a/infer/src/checkers/androidFramework.ml +++ b/infer/src/checkers/androidFramework.ml @@ -34,5 +34,6 @@ let is_autocloseable tenv tname = is_subtype_package_class tenv tname "java.lang let is_view tenv tname = is_subtype_package_class tenv tname "android.view" "View" let is_fragment tenv tname = - is_subtype_package_class tenv tname "android.app" "Fragment" + is_subtype_package_class tenv tname "androidx.fragment.app" "Fragment" + || is_subtype_package_class tenv tname "android.app" "Fragment" || is_subtype_package_class tenv tname "android.support.v4.app" "Fragment"