mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Batch update preferences
This commit is contained in:
@@ -381,9 +381,17 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
|
||||
if ("timeout".equals(key))
|
||||
return;
|
||||
|
||||
setOptions();
|
||||
getMainHandler().removeCallbacks(update);
|
||||
getMainHandler().postDelayed(update, FragmentOptions.DELAY_SETOPTIONS);
|
||||
}
|
||||
|
||||
private Runnable update = new RunnableEx("connection") {
|
||||
@Override
|
||||
protected void delegate() {
|
||||
setOptions();
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
Reference in New Issue
Block a user