[android] Remove unused preference value

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2025-11-26 20:50:30 +01:00
committed by x7z4w
parent c6ac2919fa
commit a5174623c2
4 changed files with 1 additions and 14 deletions

View File

@@ -166,7 +166,6 @@ public final class OrganicMaps implements DefaultLifecycleObserver
nativeInitPlatform(mContext, apkPath, writablePath, privatePath, tempPath, mFlavor, BuildConfig.BUILD_TYPE, nativeInitPlatform(mContext, apkPath, writablePath, privatePath, tempPath, mFlavor, BuildConfig.BUILD_TYPE,
/* isTablet */ false); /* isTablet */ false);
Config.setStoragePath(writablePath); Config.setStoragePath(writablePath);
Config.setStatisticsEnabled(SharedPropertiesUtils.isStatisticsEnabled());
mPlatformInitialized = true; mPlatformInitialized = true;
Logger.i(TAG, "Platform initialized"); Logger.i(TAG, "Platform initialized");

View File

@@ -33,7 +33,6 @@ public final class Config
private static final String KEY_DOWNLOADER_AUTO = "AutoDownloadEnabled"; private static final String KEY_DOWNLOADER_AUTO = "AutoDownloadEnabled";
private static final String KEY_PREF_ZOOM_BUTTONS = "ZoomButtonsEnabled"; private static final String KEY_PREF_ZOOM_BUTTONS = "ZoomButtonsEnabled";
static final String KEY_PREF_STATISTICS = "StatisticsEnabled";
private static final String KEY_PREF_USE_GS = "UseGoogleServices"; private static final String KEY_PREF_USE_GS = "UseGoogleServices";
private static final String KEY_MISC_DISCLAIMER_ACCEPTED = "IsDisclaimerApproved"; private static final String KEY_MISC_DISCLAIMER_ACCEPTED = "IsDisclaimerApproved";
@@ -193,11 +192,6 @@ public final class Config
setBool(KEY_PREF_ZOOM_BUTTONS, show); setBool(KEY_PREF_ZOOM_BUTTONS, show);
} }
public static void setStatisticsEnabled(boolean enabled)
{
setBool(KEY_PREF_STATISTICS, enabled);
}
public static boolean isKeepScreenOnEnabled() public static boolean isKeepScreenOnEnabled()
{ {
return getBool(KEY_MISC_KEEP_SCREEN_ON, false); return getBool(KEY_MISC_KEEP_SCREEN_ON, false);

View File

@@ -1,7 +1,5 @@
package app.organicmaps.sdk.util; package app.organicmaps.sdk.util;
import static app.organicmaps.sdk.util.Config.KEY_PREF_STATISTICS;
import android.content.Context; import android.content.Context;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
@@ -30,11 +28,6 @@ public final class SharedPropertiesUtils
mPrefs = prefs; mPrefs = prefs;
} }
public static boolean isStatisticsEnabled()
{
return mPrefs.getBoolean(KEY_PREF_STATISTICS, true);
}
public static void setShouldShowEmulateBadStorageSetting(boolean show) public static void setShouldShowEmulateBadStorageSetting(boolean show)
{ {
mPrefs.edit().putBoolean(PREFS_SHOW_EMULATE_BAD_STORAGE_SETTING, show).apply(); mPrefs.edit().putBoolean(PREFS_SHOW_EMULATE_BAD_STORAGE_SETTING, show).apply();

View File

@@ -25,6 +25,7 @@
#pragma clang diagnostic pop #pragma clang diagnostic pop
#endif #endif
//Currently unused but may come in handy if we implement traffic reporting from the app one day, leaving it here for now
namespace location namespace location
{ {
class GpsInfo; class GpsInfo;