Don't use String.isEmpty() -- bizarrely, some versions of Android don't have this method

git-svn-id: https://zxing.googlecode.com/svn/trunk@2414 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-09-26 09:28:49 +00:00
parent 6dd4420bdd
commit 374aebc5dc

View file

@ -55,7 +55,7 @@ final class TitleRetriever extends SupplementalInfoRetriever {
Matcher m = TITLE_PATTERN.matcher(contents);
if (m.find()) {
String title = m.group(1);
if (title != null && !title.isEmpty()) {
if (title != null && title.length() > 0) {
if (title.length() > MAX_TITLE_LEN) {
title = title.substring(0, MAX_TITLE_LEN) + "...";
}