mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Test - Implement a data saving function in order not to download media cover images
This commit is contained in:
parent
4a6ea47457
commit
5fc09cfcf8
4 changed files with 20 additions and 3 deletions
|
|
@ -26,6 +26,7 @@ public class PreferenceUtil {
|
|||
public static final String AUDIO_TRANSCODE_FORMAT_WIFI = "audio_transcode_format_wifi";
|
||||
public static final String AUDIO_TRANSCODE_FORMAT_MOBILE = "audio_transcode_format_mobile";
|
||||
public static final String WIFI_ONLY = "wifi_only";
|
||||
public static final String DATA_SAVING_MODE = "data_saving_mode";
|
||||
|
||||
private static PreferenceUtil sInstance;
|
||||
private final SharedPreferences mPreferences;
|
||||
|
|
@ -157,4 +158,8 @@ public class PreferenceUtil {
|
|||
public final boolean isWifiOnly() {
|
||||
return mPreferences.getBoolean(WIFI_ONLY, false);
|
||||
}
|
||||
|
||||
public final boolean isDataSavingMode() {
|
||||
return mPreferences.getBoolean(DATA_SAVING_MODE, false);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue