mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Update send network state on settings changes
This commit is contained in:
@@ -131,10 +131,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
"enabled", "poll_interval" // restart account(s)
|
||||
));
|
||||
|
||||
private static final List<String> PREF_NETWORK = Collections.unmodifiableList(Arrays.asList(
|
||||
"metered", "roaming", "rlah" // update network state
|
||||
));
|
||||
|
||||
private static final List<String> PREF_RELOAD = Collections.unmodifiableList(Arrays.asList(
|
||||
"ssl_harden", // force reconnect
|
||||
"badge", "unseen_ignored", // force update badge/widget
|
||||
@@ -616,8 +612,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
|
||||
@Override
|
||||
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
|
||||
if (PREF_EVAL.contains(key) || PREF_NETWORK.contains(key)) {
|
||||
if (PREF_NETWORK.contains(key))
|
||||
if (PREF_EVAL.contains(key) || ConnectionHelper.PREF_NETWORK.contains(key)) {
|
||||
if (ConnectionHelper.PREF_NETWORK.contains(key))
|
||||
updateNetworkState(null, null);
|
||||
|
||||
Bundle command = new Bundle();
|
||||
|
||||
Reference in New Issue
Block a user