Buggy code:
@ SuppressLint ( "Registered" ) @ EActivity public class HueConfigureActivity extends ActionBarActivity { static final int SHOW_FIND_BRIDGE = 1 ; static final int DISMISS_FIND_BRIDGE = 2 ; static final int SHOW_AUTHENTICATE = 3 ; static final int DISMISS_AUTHENTICATE = 4 ; static final int SHOW_FIND_BRIDGE_FAILED = 5 ; static final int DISMISS_FIND_BRIDGE_FAILED = 6 ; static final int SHOW_AUTH_FAILED = 7 ; static final int DISMISS_AUTH_FAILED = 8 ; static final int SHOW_ROOT_FAILED = 9 ; static final String DiscoverDlgFragmentTag = "DiscoverDialog" ; static final String DiscoverFailedDlgFragmentTag = "DiscoverFailedDialog" ; static final String AuthenticateDlgFragmentTag = "AuthDialog" ; static final String AuthenticationFailedDlgFragmentTag = "AuthFailedDialog" ; static final String RootFailedDlgFragmentTag = "RootFailedDialog" ; static final String IsConnectedAction = "IsConnected" ; static int intentFlags = ( Intent . FLAG_ACTIVITY_NEW_TASK ) | ( Intent . FLAG_ACTIVITY_SINGLE_TOP ) ; @ Bean static HueController hueController ; @ Extra int showDialog = 0 ; @ Pref HuePreferences_ preferences ; FragmentManager fragmentManager = getFragmentManager ( ) ; @ ViewById SeekBar seekBarConfigureTransition ; @ ViewById SeekBar seekBarConfigureColorfulness ; @ ViewById SeekBar seekBarConfigureMinBrightness ; @ ViewById SeekBar seekBarConfigureMaxBrightness ; @ ViewById TextView textConfigureTransition ; @ ViewById TextView textConfigureColorfulness ; @ ViewById TextView textConfigureMinBrightness ; @ ViewById TextView textConfigureMaxBrightness ; @ ViewById Button buttonConfigureLights ; HueConfigureActivity . SeekbarSettings transitionSettings ; HueConfigureActivity . SeekbarSettings colorfulnessSettings ; HueConfigureActivity . SeekbarSettings minBrightnessSettings ; HueConfigureActivity . SeekbarSettings maxBrightnessSettings ; public static void showFindBridge ( Context context ) { } public static void dismissFindBridge ( Context context ) { } public static void showFindBridgeFailed ( Context context ) { } public static void showAuthenticate ( Context context ) { } public static void dismissAuthenticate ( Context context ) { } public static void showAuthFailed ( Context context ) { } public static void dismissAuthFailed ( Context context ) { } public static void showRootFailed ( Context context ) { } @ Click void buttonConfigureLights ( ) { } @ Click void buttonConfigureBridge ( ) { } @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ AfterViews protected void init ( ) { transitionSettings = new HueConfigureActivity . SeekbarSettings ( seekBarConfigureTransition , textConfigureTransition , 0 , 5 , preferences . Transitiontime ( ) . get ( ) , true , new HueConfigureActivity . OnCustomSeekbarChangedListener ( ) { @ Override public void onChanged ( double value ) { <START_BUG> HueConfigureActivity . hueController . setTransition ( ( ( int ) ( value * 1000 ) ) ) ; <END_BUG> preferences . edit ( ) . Transitiontime ( ) . put ( ( ( float ) ( value ) ) ) . apply ( ) ; } } ) ; colorfulnessSettings = new HueConfigureActivity . SeekbarSettings ( seekBarConfigureColorfulness , textConfigureColorfulness , 0 , 2 , preferences . Colorfullness ( ) . get ( ) , true , new HueConfigureActivity . OnCustomSeekbarChangedListener ( ) { @ Override public void onChanged ( double value ) { HueConfigureActivity . hueController . setColorExp ( ( ( float ) ( value ) ) ) ; preferences . edit ( ) . Colorfullness ( ) . put ( ( ( float ) ( value ) ) ) . apply ( ) ; } } ) ; minBrightnessSettings = new HueConfigureActivity . SeekbarSettings ( seekBarConfigureMinBrightness , textConfigureMinBrightness , 0 , 255 , preferences . MinBrightness ( ) . get ( ) , false , new HueConfigureActivity . OnCustomSeekbarChangedListener ( ) { @ Override public void onChanged ( double value ) { HueConfigureActivity . hueController . setMinBri ( ( ( int ) ( value ) ) ) ; preferences . edit ( ) . MinBrightness ( ) . put ( ( ( int ) ( value ) ) ) . apply ( ) ; } } ) ; minBrightnessSettings . setValidator ( new HueConfigureActivity . Validator ( ) { @ Override public boolean validate ( double value ) { if ( ( ( maxBrightnessSettings ) != null ) && ( ( maxBrightnessSettings . getCurrent ( ) ) <= value ) ) { return false ; } return true ; } } ) ; maxBrightnessSettings = new HueConfigureActivity . SeekbarSettings ( seekBarConfigureMaxBrightness , textConfigureMaxBrightness , 0 , 255 , preferences . MaxBrightness ( ) . get ( ) , false , new HueConfigureActivity . OnCustomSeekbarChangedListener ( ) { @ Override public void onChanged ( double value ) { HueConfigureActivity . hueController . setMaxBri ( ( ( int ) ( value ) ) ) ; preferences . edit ( ) . MaxBrightness ( ) . put ( ( ( int ) ( value ) ) ) . apply ( ) ; } } ) ; maxBrightnessSettings . setValidator ( new HueConfigureActivity . Validator ( ) { @ Override public boolean validate ( double value ) { if ( ( ( minBrightnessSettings ) != null ) && ( ( minBrightnessSettings . getCurrent ( ) ) >= value ) ) { return false ; } return true ; } } ) ; if ( HueConfigureActivity . hueController . isConnected ( ) ) { buttonConfigureLights . setEnabled ( true ) ; } else { buttonConfigureLights . setEnabled ( false ) ; } } @ AfterExtras void handleIntent ( ) { } @ Receiver ( actions = HueConfigureActivity . IsConnectedAction , local = true , registerAt = RegisterAt . OnCreateOnDestroy ) void isConnectedReceiver ( ) { } private interface Validator { public abstract boolean validate ( double value ) { } } public interface OnCustomSeekbarChangedListener { void onChanged ( double value ) { } } public static class AuthFailedDialogFragment extends DialogFragment { @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public Dialog onCreateDialog ( Bundle savedInstanceState ) { } @ Override public void onDestroyView ( ) { } } public static class RootFailedDialogFragment extends DialogFragment { @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public Dialog onCreateDialog ( Bundle savedInstanceState ) { } @ Override public void onDestroyView ( ) { } } public static class DiscoverFailedDialogFragment extends DialogFragment { @ Override public void onCreate ( Bundle savedInstanceState ) { }

Fix:
HueConfigureActivity . hueController . setTransition ( ( ( float ) ( value ) ) ) ;