From c68312fe31e91c40a3c72cfdae177660e7e02b62 Mon Sep 17 00:00:00 2001 From: twinaphex <libretro@gmail.com> Date: Sat, 21 Dec 2013 06:19:38 +0100 Subject: [PATCH] (Android Location) Some changes - still not working --- .../browser/retroactivity/RetroActivityLocation.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityLocation.java b/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityLocation.java index 628fe98ab1..81a458e0d7 100644 --- a/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityLocation.java +++ b/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityLocation.java @@ -23,7 +23,7 @@ import android.widget.Toast; public class RetroActivityLocation extends NativeActivity implements GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener, -LocationListener +LocationListener, com.google.android.gms.location.LocationListener { /* LOCATION VARIABLES */ private static int CONNECTION_FAILURE_RESOLUTION_REQUEST = 0; @@ -51,14 +51,7 @@ LocationListener Toast.makeText(this, "Connected", Toast.LENGTH_SHORT).show(); location_service_running = true; // If already requested, start periodic updates - if (mUpdatesRequested) - { - mLocationClient.requestLocationUpdates(mLocationRequest, - (com.google.android.gms.location.LocationListener) this); - } - else - // Get last known location - mCurrentLocation = mLocationClient.getLastLocation(); + mLocationClient.requestLocationUpdates(mLocationRequest, this); } /*