Fixed updating "last" times

pull/214/head
M66B 6 months ago
parent 8564942ae9
commit f0b7396a31

@ -2060,7 +2060,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
@Override
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
if (!RESET_OPTIONS.contains(key))
if (!RESET_OPTIONS.contains(key) &&
!"last_cleanup".equals(key) &&
!"last_daily".equals(key))
return;
if ("last_cleanup".equals(key))

@ -638,7 +638,9 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
@Override
public void onSharedPreferenceChanged(SharedPreferences prefs, String key) {
if (!RESET_OPTIONS.contains(key))
if (!RESET_OPTIONS.contains(key) &&
!"adguard_last".equals(key) &&
!"disconnect_last".equals(key))
return;
getMainHandler().removeCallbacks(update);

Loading…
Cancel
Save