diff options
author | volzhs <volzhs@gmail.com> | 2016-06-21 03:32:44 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2016-06-21 03:32:44 +0900 |
commit | 780fa60072eb1957eb1e4abdcf4fbd2a9e5bda95 (patch) | |
tree | 28464f4ffbc6cde1b36f1a7b320fe2732c957ea2 /platform/android | |
parent | 36687684632bac50f1e6b0fc4b0adab6f09bf663 (diff) |
correct current Intent for android
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/java/src/org/godotengine/godot/Godot.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/platform/android/java/src/org/godotengine/godot/Godot.java b/platform/android/java/src/org/godotengine/godot/Godot.java index 73d54b6afa..cdf17e3161 100644 --- a/platform/android/java/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/src/org/godotengine/godot/Godot.java @@ -115,7 +115,17 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC private int mState; private boolean keep_screen_on=true; - private void setState(int newState) { + static private Intent mCurrentIntent; + + @Override public void onNewIntent(Intent intent) { + mCurrentIntent = intent; + } + + static public Intent getCurrentIntent() { + return mCurrentIntent; + } + + private void setState(int newState) { if (mState != newState) { mState = newState; mStatusText.setText(Helpers.getDownloaderStringResourceIDFromState(newState)); @@ -545,6 +555,8 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC } } + mCurrentIntent = getIntent(); + initializeGodot(); |