Implemented the alert dialog for checking the type of internet connection

This commit is contained in:
CappielloAntonio 2021-09-13 09:24:58 +02:00
parent 5fc09cfcf8
commit 77c45e2fec
6 changed files with 102 additions and 3 deletions

View file

@ -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();
}
}