diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-02-05 09:49:06 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-02-05 09:49:06 +0100 |
commit | 1a65622af5d97bfcf56c84e90e40bfd0b214e43b (patch) | |
tree | d4ba0b20e995fd9cfc5030c3d889c2a963b10b73 /src/de/blinkt/openvpn/FileSelectionFragment.java | |
parent | 84ccab8d6510835316b0a89085dae31801bd50dc (diff) |
Fix Locale related errors/bugs. Update … to unicode replacement. Fix the speed display.
Diffstat (limited to 'src/de/blinkt/openvpn/FileSelectionFragment.java')
-rw-r--r-- | src/de/blinkt/openvpn/FileSelectionFragment.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/FileSelectionFragment.java b/src/de/blinkt/openvpn/FileSelectionFragment.java index 2d8110e1..5badc6e0 100644 --- a/src/de/blinkt/openvpn/FileSelectionFragment.java +++ b/src/de/blinkt/openvpn/FileSelectionFragment.java @@ -4,6 +4,7 @@ import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import java.util.Locale; import java.util.TreeMap; import android.app.AlertDialog; @@ -180,12 +181,12 @@ public class FileSelectionFragment extends ListFragment { dirsPathMap.put(dirName, file.getPath()); } else { final String fileName = file.getName(); - final String fileNameLwr = fileName.toLowerCase(); + final String fileNameLwr = fileName.toLowerCase(Locale.getDefault()); // se ha um filtro de formatos, utiliza-o if (formatFilter != null) { boolean contains = false; for (int i = 0; i < formatFilter.length; i++) { - final String formatLwr = formatFilter[i].toLowerCase(); + final String formatLwr = formatFilter[i].toLowerCase(Locale.getDefault()); if (fileNameLwr.endsWith(formatLwr)) { contains = true; break; |