mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
correct current Intent for android
This commit is contained in:
parent
3668768463
commit
780fa60072
@ -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();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user