Logo
Explore Help
Sign In
atl/android_translation_layer
0
0
Fork 0
You've already forked android_translation_layer
mirror of https://gitlab.com/android_translation_layer/android_translation_layer.git synced 2025-10-27 11:48:10 -07:00
Code Issues Packages Projects Releases Wiki Activity
Files
faf4a3281e26a518d3edeea091582b6d0aa6f29b
android_translation_layer/src/api-impl/android/app/FragmentTransaction.java

21 lines
364 B
Java
Raw Normal View History

add bunch of new java APIs: mostly stubs or copied from AOSP Many of these classes are only needed to be subclassed by androidx support library, which is used in many android apps
2023-08-17 10:46:24 +02:00
package android.app;
public class FragmentTransaction {
add initial support for fragments Fragments are not added to the View hierarchy yet. Only the lifecycle callbacks are implemented
2023-08-22 13:29:44 +02:00
private Activity activity;
public FragmentTransaction(Activity activity) {
this.activity = activity;
}
add bunch of new java APIs: mostly stubs or copied from AOSP Many of these classes are only needed to be subclassed by androidx support library, which is used in many android apps
2023-08-17 10:46:24 +02:00
public FragmentTransaction add(Fragment fragment, String string) {
add initial support for fragments Fragments are not added to the View hierarchy yet. Only the lifecycle callbacks are implemented
2023-08-22 13:29:44 +02:00
fragment.activity = activity;
activity.fragments.add(fragment);
add bunch of new java APIs: mostly stubs or copied from AOSP Many of these classes are only needed to be subclassed by androidx support library, which is used in many android apps
2023-08-17 10:46:24 +02:00
return this;
}
public int commit() {
return 0;
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Page: 75ms Template: 5ms
English
English
Licenses API