Skip to content

Commit d4f8995

Browse files
committed
added back getActivity to PApplet
1 parent a0c805c commit d4f8995

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/src/processing/core/PApplet.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ public View onCreateView(Activity activity) {
625625
}
626626

627627

628-
628+
629629

630630
public void onResume() {
631631

@@ -1128,6 +1128,10 @@ public void orientation(int which) {
11281128
}
11291129

11301130

1131+
public Activity getActivity() {
1132+
return activity;
1133+
}
1134+
11311135
// public int sketchOrientation() {
11321136
// return ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED;
11331137
// //setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

0 commit comments

Comments
 (0)