DroidFish: Fix SeekBarPreference for languages that uses decimal comma instead of decimal dot.

This commit is contained in:
Peter Osterlund 2012-01-02 18:20:47 +00:00
parent a47b47a8d3
commit 01fdf25b72

View File

@ -98,7 +98,7 @@ public class SeekBarPreference extends Preference
}
builder.setTitle(title);
final EditText valueView = (EditText)content.findViewById(R.id.selpercentage_number);
valueView.setText(currValBox.getText().toString().replaceAll("%", ""));
valueView.setText(currValBox.getText().toString().replaceAll("%", "").replaceAll(",", "."));
final Runnable selectValue = new Runnable() {
public void run() {
try {