Merge pull request #10115 from atorralba/atorralba/fragment-fix

Java: Add support for androidx.fragment.app.Fragment
This commit is contained in:
Tony Torralba
2022-08-22 12:53:19 +02:00
committed by GitHub
29 changed files with 740 additions and 336 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* The class `AndroidFragment` now also models the Android Jetpack version of the `Fragment` class (`androidx.fragment.app.Fragment`).

View File

@@ -4,7 +4,9 @@ import java
/** The class `android.app.Fragment`. */
class AndroidFragment extends Class {
AndroidFragment() { this.getAnAncestor().hasQualifiedName("android.app", "Fragment") }
AndroidFragment() {
this.getAnAncestor().hasQualifiedName(["android.app", "androidx.fragment.app"], "Fragment")
}
}
/** The method `instantiate` of the class `android.app.Fragment`. */