Commit 0f5cff7b authored by Tony Kuo's avatar Tony Kuo Committed by Android Git Automerger
Browse files

am 279e37f7: am c6e51a83: am c7cf501f: Radio and Dual SIM - RU - Decimal comma required

* commit '279e37f7':
  Radio and Dual SIM - RU - Decimal comma required
parents 929c8556 279e37f7
......@@ -29,6 +29,7 @@ import android.view.View.MeasureSpec;
import android.widget.LinearLayout;
import android.widget.TextView;
import java.text.DecimalFormat;
import java.util.Locale;
/**
......@@ -138,9 +139,8 @@ public class FmUtils {
*/
public static String formatStation(int station) {
float frequency = (float) station / CONVERT_RATE;
String result = String.format(Locale.ENGLISH, "%.1f",
Float.valueOf(frequency));
return result;
DecimalFormat decimalFormat = new DecimalFormat("0.0");
return decimalFormat.format(frequency);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment