Skip to content

Commit 2fba186

Browse files
committed
try to manage onNewIntent events
1 parent bffaf4d commit 2fba186

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/src/org/renpy/android/PythonActivity.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,16 @@ protected void onPause() {
257257
}
258258
}
259259

260+
@Override
261+
protected void onNewIntent(Intent intent) {
262+
Log.i("python", "GOT NEW INTENT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
263+
super.onNewIntent(intent);
264+
265+
if (mView != null) {
266+
mView.onNewIntent(intent);
267+
}
268+
}
269+
260270
@Override
261271
protected void onResume() {
262272
super.onResume();

src/src/org/renpy/android/SDLSurfaceView.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@ public void onResume() {
455455
wakeLock.acquire();
456456
}
457457

458+
public void onNewIntent(Intent newintent) {
459+
// accept the new intent
460+
Log.w(TAG, "GOT NEW INTENT..........................");
461+
mActivity.setIntent(newintent);
462+
}
463+
464+
458465
public void onDestroy() {
459466
Log.w(TAG, "onDestroy() called");
460467
synchronized (this) {

0 commit comments

Comments
 (0)