mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
Android - Delay workaround to avoid joystick/controls issues
This commit is contained in:
parent
f97155b6cd
commit
97a493d113
1 changed files with 5 additions and 2 deletions
|
@ -27,7 +27,10 @@ public class SplashActivity extends Activity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onAppLoadedComplete() {
|
public void onAppLoadedComplete() {
|
||||||
startActivity(new Intent(this, HomeActivity.class));
|
// Give interface more time so textures don't fail(got deleted) on Adreno (joystick)
|
||||||
SplashActivity.this.finish();
|
new Handler(getMainLooper()).postDelayed(() -> {
|
||||||
|
startActivity(new Intent(this, HomeActivity.class));
|
||||||
|
new Handler(getMainLooper()).postDelayed(() -> SplashActivity.this.finish(), 1000);
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue