From d642da450f83aad026a93bd9f89845f2ab672b6d Mon Sep 17 00:00:00 2001 From: Andy Scherzinger Date: Wed, 21 Oct 2020 21:31:28 +0200 Subject: [PATCH] Remove unneeded empty lines Signed-off-by: Andy Scherzinger --- .../java/com/owncloud/android/ui/fragment/AvatarIT.kt | 3 --- .../com/owncloud/android/ui/fragment/AvatarTestFragment.kt | 1 - .../com/owncloud/android/ui/components/AvatarWithStatus.kt | 5 ++--- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/androidTest/java/com/owncloud/android/ui/fragment/AvatarIT.kt b/src/androidTest/java/com/owncloud/android/ui/fragment/AvatarIT.kt index 92b1d7fdf7..9aa49d24b6 100644 --- a/src/androidTest/java/com/owncloud/android/ui/fragment/AvatarIT.kt +++ b/src/androidTest/java/com/owncloud/android/ui/fragment/AvatarIT.kt @@ -1,5 +1,4 @@ /* - * * Nextcloud Android client application * * @author Tobias Kaminsky @@ -36,7 +35,6 @@ import com.owncloud.android.utils.ScreenshotTest import org.junit.Rule import org.junit.Test - class AvatarIT : AbstractIT() { @get:Rule val testActivityRule = IntentsTestRule(TestActivity::class.java, true, false) @@ -184,5 +182,4 @@ class AvatarIT : AbstractIT() { waitForIdleSync() screenshot(sut) } - } diff --git a/src/androidTest/java/com/owncloud/android/ui/fragment/AvatarTestFragment.kt b/src/androidTest/java/com/owncloud/android/ui/fragment/AvatarTestFragment.kt index dfccff59a1..e069016467 100644 --- a/src/androidTest/java/com/owncloud/android/ui/fragment/AvatarTestFragment.kt +++ b/src/androidTest/java/com/owncloud/android/ui/fragment/AvatarTestFragment.kt @@ -75,7 +75,6 @@ internal class AvatarTestFragment : Fragment() { } else { list2.addView(imageView) } - } companion object { diff --git a/src/main/java/com/owncloud/android/ui/components/AvatarWithStatus.kt b/src/main/java/com/owncloud/android/ui/components/AvatarWithStatus.kt index 43417dad5a..16956cd025 100644 --- a/src/main/java/com/owncloud/android/ui/components/AvatarWithStatus.kt +++ b/src/main/java/com/owncloud/android/ui/components/AvatarWithStatus.kt @@ -33,14 +33,13 @@ class AvatarWithStatus(val roundedBitmapDrawable: RoundedBitmapDrawable) : Drawa private val redPaint: Paint = Paint().apply { setARGB(255, 255, 0, 0) } override fun draw(canvas: Canvas) { - val width: Int = 100 - val height: Int = 100 + val width = 100 + val height = 100 val radius: Float = Math.min(width, height).toFloat() / 2f // Draw a red circle in the center //canvas.drawBitmap(roundedBitmapDrawable.bitmap!!, 0f, 0f, null) canvas.drawCircle((width / 2).toFloat(), (height / 2).toFloat(), radius, redPaint) - } override fun setAlpha(alpha: Int) {