mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Always return false for gpsPreferenceEnabled()
This commit is contained in:
parent
5be4d1764a
commit
0b0c01d3ac
1 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue