From 417448668f51c1c0f5666332479a23087014221b Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 12 Aug 2013 14:14:39 +0200 Subject: Fix lint issues --- src/de/blinkt/openvpn/fragments/FileSelectionFragment.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/de/blinkt/openvpn/fragments') diff --git a/src/de/blinkt/openvpn/fragments/FileSelectionFragment.java b/src/de/blinkt/openvpn/fragments/FileSelectionFragment.java index e0c97620..2cfe886b 100644 --- a/src/de/blinkt/openvpn/fragments/FileSelectionFragment.java +++ b/src/de/blinkt/openvpn/fragments/FileSelectionFragment.java @@ -177,13 +177,13 @@ public class FileSelectionFragment extends ListFragment { // 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(Locale.getDefault()); - if (fileNameLwr.endsWith(formatLwr)) { - contains = true; - break; - } - } + for (String aFormatFilter : formatFilter) { + final String formatLwr = aFormatFilter.toLowerCase(Locale.getDefault()); + if (fileNameLwr.endsWith(formatLwr)) { + contains = true; + break; + } + } if (contains) { filesMap.put(fileName, fileName); filesPathMap.put(fileName, file.getPath()); -- cgit v1.2.3