r51 - trunk/src/fr/ifremer/wlo
Author: kmorin Date: 2014-02-19 11:19:58 +0100 (Wed, 19 Feb 2014) New Revision: 51 Url: http://forge.codelutin.com/projects/wlo/repository/revisions/51 Log: fixes #4192 [SAISIE] ?\195?\137cran des poids [niveau 5 ?\195?\160 7] Modified: trunk/src/fr/ifremer/wlo/WeightsActivity.java Modified: trunk/src/fr/ifremer/wlo/WeightsActivity.java =================================================================== --- trunk/src/fr/ifremer/wlo/WeightsActivity.java 2014-02-19 10:17:11 UTC (rev 50) +++ trunk/src/fr/ifremer/wlo/WeightsActivity.java 2014-02-19 10:19:58 UTC (rev 51) @@ -233,11 +233,10 @@ int inputType = InputType.TYPE_CLASS_NUMBER; String textValue = null; + if (weightUnit > 1) { + inputType |= InputType.TYPE_NUMBER_FLAG_DECIMAL; + } if (value != null) { - if (weightUnit > 1) { - inputType |= InputType.TYPE_NUMBER_FLAG_DECIMAL; - } - if (weightUnit > 1 && value != null) { float floatValue = (float) value / weightUnit; textValue = String.format(Locale.US, "%.3f", floatValue);
participants (1)
-
kmorin@users.forge.codelutin.com