mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Implemented the alert dialog for checking the type of internet connection
This commit is contained in:
parent
5fc09cfcf8
commit
77c45e2fec
6 changed files with 102 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue