correct current Intent for android
(cherry picked from commit 780fa60072
)
This commit is contained in:
parent
8c5577e9e4
commit
5582d37af9
|
@ -115,6 +115,16 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
|
|||
private int mState;
|
||||
private boolean keep_screen_on=true;
|
||||
|
||||
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;
|
||||
|
@ -542,6 +552,8 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
|
|||
}
|
||||
}
|
||||
|
||||
mCurrentIntent = getIntent();
|
||||
|
||||
initializeGodot();
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue