Android - Remove delay starting Home + Change default joystick flag

This commit is contained in:
Cristian Luis Duarte 2018-05-10 18:21:33 -03:00
parent 843282739e
commit f30908fb26
2 changed files with 3 additions and 6 deletions

View file

@ -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);
} }
} }

View file

@ -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};