Buggy code:
intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_SHOW , prefs . getBoolean ( key , false ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_POSITION ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_POSITION , prefs . getString ( key , "TOP" ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_MARGIN ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_MARGIN , prefs . getInt ( key , 0 ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_THICKNESS ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_THICKNESS , prefs . getInt ( key , 2 ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_DYNACOLOR ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_DYNACOLOR , prefs . getBoolean ( key , true ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_COLOR ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_COLOR , prefs . getInt ( key , getResources ( ) . getInteger ( COLOR_WHITE ) ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_COLOR_LOW ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_COLOR_LOW , prefs . getInt ( key , getResources ( ) . getInteger ( COLOR_ORANGE ) ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_COLOR_CRITICAL ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_COLOR_CRITICAL , prefs . getInt ( key , getResources ( ) . getInteger ( COLOR_RED ) ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_CHARGE_ANIM ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_CHARGE_ANIM , prefs . getBoolean ( key , true ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_CENTERED ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_CENTERED , prefs . getBoolean ( key , false ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_BAR_COLOR_CHARGING ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_BATTERY_BAR_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BBAR_COLOR_CHARGING , prefs . getInt ( key , getResources ( ) . getInteger ( COLOR_GREEN ) ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_RECENTS_CLEAR_ALL ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_RECENTS_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_RECENTS_CLEAR_ALL , Integer . valueOf ( prefs . getString ( key , "0" ) ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_RECENTS_CLEAR_ALL_ICON_ALT ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_RECENTS_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_RECENTS_CLEAR_ALL_ICON_ALT , prefs . getBoolean ( key , false ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_RAMBAR ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_RECENTS_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_RECENTS_RAMBAR , Integer . valueOf ( prefs . getString ( key , "0" ) ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_RECENTS_CLEAR_MARGIN_TOP ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_RECENTS_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_RECENTS_MARGIN_TOP , prefs . getInt ( key , 77 ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_RECENTS_CLEAR_MARGIN_BOTTOM ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_RECENTS_CHANGED ) ; <START_BUG> intent . putExtra ( GravityBoxSettings . EXTRA_RECENTS_MARGIN_TOP , prefs . getInt ( key , 50 ) ) ; <END_BUG> } else if ( key . equals ( GravityBoxSettings . PREF_KEY_RECENTS_SEARCH_BAR ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_RECENTS_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_RECENTS_SEARCH_BAR , prefs . getString ( key , "DEFAULT" ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_SIGNAL_CLUSTER_NARROW ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_SIGNAL_CLUSTER_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_SC_NARROW , prefs . getBoolean ( key , false ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_CELL_TILE_DATA_OFF_ICON ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_QUICKSETTINGS_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_CELL_TILE_DATA_OFF_ICON , prefs . getBoolean ( key , false ) ) ; } else if ( GravityBoxSettings . PREF_KEY_LOCKSCREEN_SHORTCUT . contains ( key ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_LOCKSCREEN_SHORTCUT_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_LS_SHORTCUT_SLOT , GravityBoxSettings . PREF_KEY_LOCKSCREEN_SHORTCUT . indexOf ( key ) ) ; intent . putExtra ( GravityBoxSettings . EXTRA_LS_SHORTCUT_VALUE , prefs . getString ( key , null ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_LOCKSCREEN_SHORTCUT_SAFE_LAUNCH ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_LOCKSCREEN_SHORTCUT_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_LS_SAFE_LAUNCH , prefs . getBoolean ( key , false ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_TILE_PERCENTAGE ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_QUICKSETTINGS_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BATTERY_TILE_PERCENTAGE , prefs . getBoolean ( key , false ) ) ; } else if ( key . equals ( GravityBoxSettings . PREF_KEY_BATTERY_TILE_SAVER_INDICATE ) ) { intent . setAction ( GravityBoxSettings . ACTION_PREF_QUICKSETTINGS_CHANGED ) ; intent . putExtra ( GravityBoxSettings . EXTRA_BATTERY_TILE_SAVER_INDICATE , prefs . getBoolean ( key , false ) ) ; }

Fix:
intent . putExtra ( GravityBoxSettings . EXTRA_RECENTS_MARGIN_BOTTOM , prefs . getInt ( key , 50 ) ) ;