mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[android] Remove unused preference value
Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
@@ -166,7 +166,6 @@ public final class OrganicMaps implements DefaultLifecycleObserver
|
||||
nativeInitPlatform(mContext, apkPath, writablePath, privatePath, tempPath, mFlavor, BuildConfig.BUILD_TYPE,
|
||||
/* isTablet */ false);
|
||||
Config.setStoragePath(writablePath);
|
||||
Config.setStatisticsEnabled(SharedPropertiesUtils.isStatisticsEnabled());
|
||||
|
||||
mPlatformInitialized = true;
|
||||
Logger.i(TAG, "Platform initialized");
|
||||
|
||||
@@ -33,7 +33,6 @@ public final class Config
|
||||
|
||||
private static final String KEY_DOWNLOADER_AUTO = "AutoDownloadEnabled";
|
||||
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_MISC_DISCLAIMER_ACCEPTED = "IsDisclaimerApproved";
|
||||
@@ -193,11 +192,6 @@ public final class Config
|
||||
setBool(KEY_PREF_ZOOM_BUTTONS, show);
|
||||
}
|
||||
|
||||
public static void setStatisticsEnabled(boolean enabled)
|
||||
{
|
||||
setBool(KEY_PREF_STATISTICS, enabled);
|
||||
}
|
||||
|
||||
public static boolean isKeepScreenOnEnabled()
|
||||
{
|
||||
return getBool(KEY_MISC_KEEP_SCREEN_ON, false);
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package app.organicmaps.sdk.util;
|
||||
|
||||
import static app.organicmaps.sdk.util.Config.KEY_PREF_STATISTICS;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -30,11 +28,6 @@ public final class SharedPropertiesUtils
|
||||
mPrefs = prefs;
|
||||
}
|
||||
|
||||
public static boolean isStatisticsEnabled()
|
||||
{
|
||||
return mPrefs.getBoolean(KEY_PREF_STATISTICS, true);
|
||||
}
|
||||
|
||||
public static void setShouldShowEmulateBadStorageSetting(boolean show)
|
||||
{
|
||||
mPrefs.edit().putBoolean(PREFS_SHOW_EMULATE_BAD_STORAGE_SETTING, show).apply();
|
||||
|
||||
Reference in New Issue
Block a user