Always return false for gpsPreferenceEnabled()

This commit is contained in:
misaochan 2018-06-19 20:33:10 +10:00
parent 5be4d1764a
commit 0b0c01d3ac

View file

@ -71,9 +71,9 @@ public class GPSExtractor {
* @return true if enabled, false if disabled * @return true if enabled, false if disabled
*/ */
private boolean gpsPreferenceEnabled() { private boolean gpsPreferenceEnabled() {
boolean gpsPref = prefs.getBoolean("allowGps", false); //TODO: Hotfix for #1599
Timber.d("Gps pref set to: %b", gpsPref); //Stopgap measure prior to implementing category suggestions without adding location template
return gpsPref; return false;
} }
/** /**
@ -134,8 +134,7 @@ public class GPSExtractor {
// explicitly set by MyLocationListener // explicitly set by MyLocationListener
// and do not default to (0.0,0.0) // and do not default to (0.0,0.0)
if (gpsPrefEnabled && currentLatitude != null && currentLongitude != null) { if (gpsPrefEnabled && currentLatitude != null && currentLongitude != null) {
Timber.d("Current location values: Lat = %f Long = %f", Timber.d("Current location values: Lat = %f Long = %f", currentLatitude, currentLongitude);
currentLatitude, currentLongitude);
return String.valueOf(currentLatitude) + "|" + String.valueOf(currentLongitude); return String.valueOf(currentLatitude) + "|" + String.valueOf(currentLongitude);
} else { } else {
// No coords found // No coords found