mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 10:03:51 +02:00
Batch update preferences
This commit is contained in:
@@ -1409,9 +1409,17 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
|
||||
if ("message_zoom".equals(key))
|
||||
return;
|
||||
|
||||
setOptions();
|
||||
getMainHandler().removeCallbacks(update);
|
||||
getMainHandler().postDelayed(update, FragmentOptions.DELAY_SETOPTIONS);
|
||||
}
|
||||
|
||||
private Runnable update = new RunnableEx("display") {
|
||||
@Override
|
||||
protected void delegate() {
|
||||
setOptions();
|
||||
}
|
||||
};
|
||||
|
||||
@Override
|
||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||
inflater.inflate(R.menu.menu_options, menu);
|
||||
|
||||
Reference in New Issue
Block a user