mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 03:03:35 +02:00
Android - Remove delay starting Home + Change default joystick flag
This commit is contained in:
parent
843282739e
commit
f30908fb26
2 changed files with 3 additions and 6 deletions
|
@ -27,10 +27,7 @@ public class SplashActivity extends Activity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onAppLoadedComplete() {
|
public void onAppLoadedComplete() {
|
||||||
// Give interface more time so textures don't fail(got deleted) on Adreno (joystick)
|
startActivity(new Intent(this, HomeActivity.class));
|
||||||
new Handler(getMainLooper()).postDelayed(() -> {
|
SplashActivity.this.finish();
|
||||||
startActivity(new Intent(this, HomeActivity.class));
|
|
||||||
new Handler(getMainLooper()).postDelayed(() -> SplashActivity.this.finish(), 1000);
|
|
||||||
}, 500);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace VirtualPad {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Instance _leftVPadInstance;
|
Instance _leftVPadInstance;
|
||||||
bool _enabled;
|
bool _enabled {true};
|
||||||
bool _hidden;
|
bool _hidden;
|
||||||
glm::vec2 _jumpButtonPosition;
|
glm::vec2 _jumpButtonPosition;
|
||||||
int _extraBottomMargin {0};
|
int _extraBottomMargin {0};
|
||||||
|
|
Loading…
Reference in a new issue