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
add initial support for fragments
Fragments are not added to the View hierarchy yet. Only the lifecycle callbacks are implemented
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
package android.app;
|
||||
|
||||
public class FragmentTransaction {
|
||||
|
||||
private Activity activity;
|
||||
|
||||
public FragmentTransaction(Activity activity) {
|
||||
this.activity = activity;
|
||||
}
|
||||
|
||||
public FragmentTransaction add(Fragment fragment, String string) {
|
||||
fragment.activity = activity;
|
||||
activity.fragments.add(fragment);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user