diff --git a/app/src/androidTest/java/com/owncloud/android/datamodel/OCFileIconTests.kt b/app/src/androidTest/java/com/owncloud/android/datamodel/OCFileIconTests.kt index cd4685cc3a..aafad8d90b 100644 --- a/app/src/androidTest/java/com/owncloud/android/datamodel/OCFileIconTests.kt +++ b/app/src/androidTest/java/com/owncloud/android/datamodel/OCFileIconTests.kt @@ -101,4 +101,5 @@ class OCFileIconTests { fun destroy() { sut = null } + } diff --git a/app/src/androidTest/java/com/owncloud/android/utils/DrawableUtilTests.kt b/app/src/androidTest/java/com/owncloud/android/utils/DrawableUtilTests.kt index 7dd74b03d4..c48f14fe1b 100644 --- a/app/src/androidTest/java/com/owncloud/android/utils/DrawableUtilTests.kt +++ b/app/src/androidTest/java/com/owncloud/android/utils/DrawableUtilTests.kt @@ -42,7 +42,8 @@ class DrawableUtilTests { @Test fun testAddDrawableAsOverlayWhenGivenValidDrawablesShouldContainTwoDrawable() { - val bitmap: Bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888) + val bitmapSize = 10 + val bitmap: Bitmap = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888) val drawable = BitmapDrawable(context?.resources, bitmap) val layerDrawable = sut?.addDrawableAsOverlay(drawable, drawable) @@ -59,4 +60,5 @@ class DrawableUtilTests { sut = null context = null } + } diff --git a/app/src/main/java/com/owncloud/android/datamodel/OCFile.java b/app/src/main/java/com/owncloud/android/datamodel/OCFile.java index 2ae87ca358..b6c42dbe60 100644 --- a/app/src/main/java/com/owncloud/android/datamodel/OCFile.java +++ b/app/src/main/java/com/owncloud/android/datamodel/OCFile.java @@ -1021,4 +1021,5 @@ public class OCFile implements Parcelable, Comparable, ServerFileInterfa public void setTags(List tags) { this.tags = tags; } + } diff --git a/app/src/main/java/com/owncloud/android/utils/DrawableUtil.kt b/app/src/main/java/com/owncloud/android/utils/DrawableUtil.kt index eae3353cec..b87566a0f3 100644 --- a/app/src/main/java/com/owncloud/android/utils/DrawableUtil.kt +++ b/app/src/main/java/com/owncloud/android/utils/DrawableUtil.kt @@ -43,4 +43,5 @@ class DrawableUtil { layerDrawable.setLayerInset(1, overlayBounds.left, overlayBounds.top, overlayBounds.right, overlayBounds.bottom) return layerDrawable } + } diff --git a/app/src/test/java/com/nextcloud/android/utils/ExtensionsTest.kt b/app/src/test/java/com/nextcloud/android/utils/ExtensionsTest.kt index e2407c8f79..d4647d5b9f 100644 --- a/app/src/test/java/com/nextcloud/android/utils/ExtensionsTest.kt +++ b/app/src/test/java/com/nextcloud/android/utils/ExtensionsTest.kt @@ -31,4 +31,5 @@ class ExtensionsTest { assertTrue(actualYearNewValue == "") assertFalse(actualYearNewValue == "2022") } + }