X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/d6f725bfebd0304b0b4f5d0daab8e311adf41aa7..5dc43aab3cc1243f9989dd6a0c7dd3350c3f709b:/src/com/owncloud/android/DisplayUtils.java diff --git a/src/com/owncloud/android/DisplayUtils.java b/src/com/owncloud/android/DisplayUtils.java index f436852f..d2939c87 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. * @@ -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;