mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
6dd4420bdd
commit
374aebc5dc
|
@ -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) + "...";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue