Skip to content

Commit

Permalink
Default global pref PREF_RUN_ON_WIFI to true (#95)
Browse files Browse the repository at this point in the history
in SyncConditionsActivity, according to definition in  app_settings.xml
  • Loading branch information
Catfriend1 authored Oct 14, 2018
1 parent f6f90c9 commit b84d4da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected void onCreate(Bundle savedInstanceState) {
/**
* Load global run conditions.
*/
Boolean globalRunOnWifiEnabled = mPreferences.getBoolean(Constants.PREF_RUN_ON_WIFI, false);
Boolean globalRunOnWifiEnabled = mPreferences.getBoolean(Constants.PREF_RUN_ON_WIFI, true);
Boolean globalWhitelistEnabled = !mPreferences.getStringSet(Constants.PREF_WIFI_SSID_WHITELIST, new HashSet<>())
.isEmpty();
Set<String> globalWhitelistedSsid = mPreferences.getStringSet(Constants.PREF_WIFI_SSID_WHITELIST, new HashSet<>());
Expand Down

0 comments on commit b84d4da

Please sign in to comment.