X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/77ddd1ccb62e8b70580b8f410dda703a269f224f..c2abbaaedb69dba35866a48b745b68f3519cbca1:/src/com/owncloud/android/DisplayUtils.java diff --git a/src/com/owncloud/android/DisplayUtils.java b/src/com/owncloud/android/DisplayUtils.java index 12b615e4..1ee898b3 100644 --- a/src/com/owncloud/android/DisplayUtils.java +++ b/src/com/owncloud/android/DisplayUtils.java @@ -3,9 +3,8 @@ * Copyright (C) 2012-2013 ownCloud Inc. * * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License version 2, + * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -25,8 +24,6 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Set; -import android.util.Log; - /** * A helper class for some string operations. * @@ -35,7 +32,7 @@ import android.util.Log; */ public class DisplayUtils { - private static String TAG = DisplayUtils.class.getSimpleName(); + //private static String TAG = DisplayUtils.class.getSimpleName(); private static final String[] sizeSuffixes = { "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" }; @@ -145,7 +142,7 @@ public class DisplayUtils { } else { String [] parts = mimetype.split("/"); String type = parts[0]; - String subtype = parts[1]; + String subtype = (parts.length > 1) ? parts[1] : ""; if(TYPE_TXT.equals(type)) { return R.drawable.file_doc;