Fix lint warning about implicit locale

This commit is contained in:
Daniel Martí 2015-10-06 14:36:40 +02:00
parent 469f09c0b3
commit fd8355e872

View File

@ -8,6 +8,7 @@ import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Locale;
public class IconDownloader extends BaseImageDownloader {
@ -32,7 +33,7 @@ public class IconDownloader extends BaseImageDownloader {
}
//bluetooth isn't a scheme in the Scheme. library, so we can add a check here
if (imageUri.toLowerCase().startsWith("bluetooth")) {
if (imageUri.toLowerCase(Locale.ENGLISH).startsWith("bluetooth")) {
Downloader downloader = DownloaderFactory.create(context, imageUri);
ByteArrayOutputStream baos = new ByteArrayOutputStream();