[android] Disable proprietary Google Fused Location by default

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-05-21 13:43:11 +07:00
committed by Konstantin Pastbin
parent 7c26c0fc1b
commit 2a4111235e

View File

@@ -58,12 +58,6 @@ public final class Config
private Config() {}
@SuppressWarnings("ConstantConditions") // BuildConfig
private static boolean isFdroid()
{
return BuildConfig.FLAVOR.equals("fdroid");
}
private static int getInt(String key, int def)
{
return nativeGetInt(key, def);
@@ -193,14 +187,7 @@ public final class Config
public static boolean useGoogleServices()
{
// F-droid users expect non-free networks to be disabled by default
// https://t.me/organicmaps/47334
// Additionally, in the µG play-services-location library which is used for
// F-droid builds, GMS api availability is stubbed and always returns true.
// https://github.com/microg/GmsCore/issues/2309
// For more details, see the discussion in
// https://github.com/organicmaps/organicmaps/pull/9575
return getBool(KEY_PREF_USE_GS, !isFdroid());
return getBool(KEY_PREF_USE_GS, false);
}
public static void setUseGoogleService(boolean use)