mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +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
|
||||
*/
|
||||
private boolean gpsPreferenceEnabled() {
|
||||
boolean gpsPref = prefs.getBoolean("allowGps", false);
|
||||
Timber.d("Gps pref set to: %b", gpsPref);
|
||||
return gpsPref;
|
||||
//TODO: Hotfix for #1599
|
||||
//Stopgap measure prior to implementing category suggestions without adding location template
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -134,8 +134,7 @@ public class GPSExtractor {
|
|||
// explicitly set by MyLocationListener
|
||||
// and do not default to (0.0,0.0)
|
||||
if (gpsPrefEnabled && currentLatitude != null && currentLongitude != null) {
|
||||
Timber.d("Current location values: Lat = %f Long = %f",
|
||||
currentLatitude, currentLongitude);
|
||||
Timber.d("Current location values: Lat = %f Long = %f", currentLatitude, currentLongitude);
|
||||
return String.valueOf(currentLatitude) + "|" + String.valueOf(currentLongitude);
|
||||
} else {
|
||||
// No coords found
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue