From: David A. Velasco Date: Tue, 14 Oct 2014 11:18:30 +0000 (+0200) Subject: Fixed indention, log and copyright issues in DiskLruImageCache X-Git-Tag: oc-android-1.7.0_signed~15^2~19 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/a04e5382b569e9773177109b3ae04c9d57bd736b?ds=inline;hp=--cc Fixed indention, log and copyright issues in DiskLruImageCache --- a04e5382b569e9773177109b3ae04c9d57bd736b diff --git a/src/com/owncloud/android/ui/adapter/DiskLruImageCache.java b/src/com/owncloud/android/ui/adapter/DiskLruImageCache.java index de6d10be..01eef3f5 100644 --- a/src/com/owncloud/android/ui/adapter/DiskLruImageCache.java +++ b/src/com/owncloud/android/ui/adapter/DiskLruImageCache.java @@ -1,3 +1,20 @@ +/* ownCloud Android client application + * Copyright (C) 2012-2014 ownCloud Inc. + * + * This program is free software: you can redistribute it and/or modify + * 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 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ + package com.owncloud.android.ui.adapter; import java.io.BufferedInputStream; @@ -77,17 +94,17 @@ public class DiskLruImageCache { mDiskCache.flush(); editor.commit(); if ( BuildConfig.DEBUG ) { - Log.d( "cache_test_DISK_", "image put on disk cache " + validKey ); + Log_OC.d( "cache_test_DISK_", "image put on disk cache " + validKey ); } } else { editor.abort(); if ( BuildConfig.DEBUG ) { - Log.d( "cache_test_DISK_", "ERROR on: image put on disk cache " + validKey ); + Log_OC.d( "cache_test_DISK_", "ERROR on: image put on disk cache " + validKey ); } } } catch (IOException e) { if ( BuildConfig.DEBUG ) { - Log.d( "cache_test_DISK_", "ERROR on: image put on disk cache " + validKey ); + Log_OC.d( "cache_test_DISK_", "ERROR on: image put on disk cache " + validKey ); } try { if ( editor != null ) { @@ -125,7 +142,8 @@ public class DiskLruImageCache { } if ( BuildConfig.DEBUG ) { - Log.d("cache_test_DISK_", bitmap == null ? "not found" : "image read from disk " + validKey); + Log_OC.d("cache_test_DISK_", bitmap == null ? + "not found" : "image read from disk " + validKey); } return bitmap; @@ -154,7 +172,7 @@ public class DiskLruImageCache { public void clearCache() { if ( BuildConfig.DEBUG ) { - Log.d( "cache_test_DISK_", "disk cache CLEARED"); + Log_OC.d( "cache_test_DISK_", "disk cache CLEARED"); } try { mDiskCache.delete(); @@ -179,7 +197,7 @@ public class DiskLruImageCache { String validKey = convertToValidKey(key); try { mDiskCache.remove(validKey); - Log.d(TAG, "removeKey from cache: " + validKey); + Log_OC.d(TAG, "removeKey from cache: " + validKey); } catch (IOException e) { e.printStackTrace(); }