Fix AnimatorTest sample, fix #696

This commit is contained in:
Emux 2019-03-07 11:08:16 +02:00
parent f7272dcdcd
commit c906c468f8
No known key found for this signature in database
GPG Key ID: 64ED9980896038C3

View File

@ -1,6 +1,6 @@
/* /*
* Copyright 2014 Hannes Janetzek * Copyright 2014 Hannes Janetzek
* Copyright 2017-2018 devemux86 * Copyright 2017-2019 devemux86
* *
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
* *
@ -46,6 +46,7 @@ public class AnimatorTest extends GdxMapApp {
protected boolean onKeyDown(int keycode) { protected boolean onKeyDown(int keycode) {
if (keycode == Input.Keys.NUM_1) { if (keycode == Input.Keys.NUM_1) {
mMap.animator().animateTo(new BoundingBox(53.1, 8.8, 53.2, 8.9)); mMap.animator().animateTo(new BoundingBox(53.1, 8.8, 53.2, 8.9));
mMap.updateMap(true);
return true; return true;
} }
return false; return false;