Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

try to manage onNewIntent events

  • Loading branch information...
commit 2fba186dcc21dd25f9403265e75466608cc69e1f 1 parent bffaf4d
@tshirtman tshirtman authored
View
10 src/src/org/renpy/android/PythonActivity.java
@@ -258,6 +258,16 @@ protected void onPause() {
}
@Override
+ protected void onNewIntent(Intent intent) {
+ Log.i("python", "GOT NEW INTENT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
+ super.onNewIntent(intent);
+
+ if (mView != null) {
+ mView.onNewIntent(intent);
+ }
+ }
+
+ @Override
protected void onResume() {
super.onResume();
_isPaused = false;
View
7 src/src/org/renpy/android/SDLSurfaceView.java
@@ -455,6 +455,13 @@ public void onResume() {
wakeLock.acquire();
}
+ public void onNewIntent(Intent newintent) {
+ // accept the new intent
+ Log.w(TAG, "GOT NEW INTENT..........................");
+ mActivity.setIntent(newintent);
+ }
+
+
public void onDestroy() {
Log.w(TAG, "onDestroy() called");
synchronized (this) {
Please sign in to comment.
Something went wrong with that request. Please try again.