mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
do not use literals in conditional statements
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
d53c17c0fc
commit
9d3e28d019
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue