Skip to content

Commit 72a9505

Browse files
committed
startActivity, runOnUiThread on PApplet to keep backward compatibility
1 parent 32e780c commit 72a9505

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/src/processing/core/PApplet.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,16 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
586586
}
587587

588588

589+
public void startActivity(Intent intent) {
590+
surface.startActivity(intent);
591+
}
592+
593+
594+
public void runOnUiThread(Runnable action) {
595+
surface.runOnUiThread(action);
596+
}
597+
598+
589599
public boolean hasPermission(String permission) {
590600
return surface.hasPermission(permission);
591601
}

0 commit comments

Comments
 (0)