mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 15:03:37 +00:00
Implemented the alert dialog for checking the type of internet connection
This commit is contained in:
@@ -162,4 +162,10 @@ public class PreferenceUtil {
|
||||
public final boolean isDataSavingMode() {
|
||||
return mPreferences.getBoolean(DATA_SAVING_MODE, false);
|
||||
}
|
||||
|
||||
public void setDataSavingMode(Boolean isDataSavingModeEnabled) {
|
||||
final SharedPreferences.Editor editor = mPreferences.edit();
|
||||
editor.putBoolean(DATA_SAVING_MODE, isDataSavingModeEnabled);
|
||||
editor.apply();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user