
return constrainSpeedValue (result);
}</BUG>
public static int setVerticalSpeed(Context c, int v) {
<BUG>if (!sRuntimeConstantsLoaded) loadRuntimeConstants(c);
v= constrainSpeedValue(v);
SharedPreferences.Editor spe= getSharedPreferences(c).edit();
spe.putInt(Preferences.KEY_Y_AXIS_SPEED, v);
</BUG>
spe.apply();

MOTION_SMOOTHING_MAX= r.getInteger(R.integer.motion_smoothing_max);
MOTION_THRESHOLD_DEFAULT= r.getInteger(R.integer.motion_threshold_default);
MOTION_THRESHOLD_MIN= r.getInteger(R.integer.motion_threshold_min);
MOTION_THRESHOLD_MAX= r.getInteger(R.integer.motion_threshold_max);
SOUND_ON_CLICK_DEFAULT= r.getBoolean(R.bool.sound_on_click_default);
sRuntimeConstantsLoaded= true;
}
private static int constraint (int v, int min, int max) {
if (v< min) return min;
if (v> max) return max;
