[infer] make the Fragment Retains View checker support the androidx Fragment class name

Reviewed By: ezgicicek

Differential Revision: D14957071

fbshipit-source-id: 9d8ef443e
master
Jeremy Dubreil 6 years ago committed by Facebook Github Bot
parent 3fef754b66
commit 86d4c5a55f

@ -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_view tenv tname = is_subtype_package_class tenv tname "android.view" "View"
let is_fragment tenv tname = 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" || is_subtype_package_class tenv tname "android.support.v4.app" "Fragment"

Loading…
Cancel
Save