Android - Delay workaround to avoid joystick/controls issues

This commit is contained in:
Cristian Luis Duarte 2018-05-14 14:41:31 -03:00
parent f97155b6cd
commit 97a493d113

View file

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