do not use literals in conditional statements

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-09-04 15:27:30 +02:00 committed by Andy Scherzinger
parent d53c17c0fc
commit 9d3e28d019
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -482,7 +482,7 @@ public class FileContentProvider extends ContentProvider {
case ROOT_DIRECTORY: case ROOT_DIRECTORY:
break; break;
case DIRECTORY: case DIRECTORY:
if (uri.getPathSegments().size() > 1) { if (uri.getPathSegments().size() > SINGLE_PATH_SEGMENT) {
sqlQuery.appendWhere(ProviderTableMeta.FILE_PARENT + "=" + uri.getPathSegments().get(1)); sqlQuery.appendWhere(ProviderTableMeta.FILE_PARENT + "=" + uri.getPathSegments().get(1));
} }
break; break;