X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/37f0586c47ab5c2b8f47a4b286b5c0df06b27c12..c2abbaaedb69dba35866a48b745b68f3519cbca1:/src/com/owncloud/android/DisplayUtils.java?ds=inline diff --git a/src/com/owncloud/android/DisplayUtils.java b/src/com/owncloud/android/DisplayUtils.java index f436852f..1ee898b3 100644 --- a/src/com/owncloud/android/DisplayUtils.java +++ b/src/com/owncloud/android/DisplayUtils.java @@ -1,11 +1,10 @@ /* ownCloud Android client application * Copyright (C) 2011 Bartek Przybylski - * Copyright (2) 2012-2013 ownCloud Inc. + * 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 3 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;