@ -159,6 +159,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
private SwitchCompat swKeepAlivePoll ;
private SwitchCompat swEmptyPool ;
private SwitchCompat swIdleDone ;
private SwitchCompat swLogarithmicBackoff ;
private SwitchCompat swExactAlarms ;
private SwitchCompat swInfra ;
private SwitchCompat swDupMsgId ;
@ -199,7 +200,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
"chunk_size" , "undo_manager" , "webview_legacy" ,
"use_modseq" , "uid_command" , "perform_expunge" , "uid_expunge" ,
"auth_plain" , "auth_login" , "auth_ntlm" , "auth_sasl" , "auth_apop" ,
"keep_alive_poll" , "empty_pool" , "idle_done" ,
"keep_alive_poll" , "empty_pool" , "idle_done" , "logarithmic_backoff" ,
"exact_alarms" , "infra" , "dup_msgids" , "test_iab"
} ;
@ -312,6 +313,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swKeepAlivePoll = view . findViewById ( R . id . swKeepAlivePoll ) ;
swEmptyPool = view . findViewById ( R . id . swEmptyPool ) ;
swIdleDone = view . findViewById ( R . id . swIdleDone ) ;
swLogarithmicBackoff = view . findViewById ( R . id . swLogarithmicBackoff ) ;
swExactAlarms = view . findViewById ( R . id . swExactAlarms ) ;
swInfra = view . findViewById ( R . id . swInfra ) ;
swDupMsgId = view . findViewById ( R . id . swDupMsgId ) ;
@ -1042,6 +1044,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
} ) ;
swLogarithmicBackoff . setOnCheckedChangeListener ( new CompoundButton . OnCheckedChangeListener ( ) {
@Override
public void onCheckedChanged ( CompoundButton compoundButton , boolean checked ) {
prefs . edit ( ) . putBoolean ( "logarithmic_backoff" , checked ) . apply ( ) ;
}
} ) ;
swExactAlarms . setOnCheckedChangeListener ( new CompoundButton . OnCheckedChangeListener ( ) {
@Override
public void onCheckedChanged ( CompoundButton compoundButton , boolean checked ) {
@ -1614,6 +1623,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swKeepAlivePoll . setChecked ( prefs . getBoolean ( "keep_alive_poll" , false ) ) ;
swEmptyPool . setChecked ( prefs . getBoolean ( "empty_pool" , true ) ) ;
swIdleDone . setChecked ( prefs . getBoolean ( "idle_done" , true ) ) ;
swLogarithmicBackoff . setChecked ( prefs . getBoolean ( "logarithmic_backoff" , true ) ) ;
swExactAlarms . setChecked ( prefs . getBoolean ( "exact_alarms" , true ) ) ;
swInfra . setChecked ( prefs . getBoolean ( "infra" , false ) ) ;
swDupMsgId . setChecked ( prefs . getBoolean ( "dup_msgids" , false ) ) ;