diff --git a/vtm-android-example/src/org/oscim/android/test/LocationActivity.java b/vtm-android-example/src/org/oscim/android/test/LocationActivity.java index 83e37bc0d..1ad889c0b 100644 --- a/vtm-android-example/src/org/oscim/android/test/LocationActivity.java +++ b/vtm-android-example/src/org/oscim/android/test/LocationActivity.java @@ -43,6 +43,7 @@ protected void onResume() { super.onResume(); enableAvailableProviders(); + locationLayer.setEnabled(true); } @Override @@ -50,6 +51,7 @@ protected void onPause() { super.onPause(); locationManager.removeUpdates(this); + locationLayer.setEnabled(false); } @Override