Skip to content

Commit d2fe5ba

Browse files
committed
adde getFragmentManage()
1 parent cb84ca9 commit d2fe5ba

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

core/src/processing/core/PApplet.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,16 +661,18 @@ synchronized public void onBackPressed() {
661661

662662

663663
public FragmentManager getFragmentManager() {
664-
return null; //surface.getFragmentManager();
664+
if (getActivity() != null) {
665+
getActivity().getFragmentManager();
666+
}
667+
return null;
665668
}
666669

667670

668671
public Window getWindow(){
669-
if (getActivity() == null) {
670-
return null;
671-
} else {
672+
if (getActivity() != null) {
672673
return getActivity().getWindow();
673674
}
675+
return null;
674676
}
675677

676678

0 commit comments

Comments
 (0)