diff options
Diffstat (limited to 'ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt b/ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt index ee4d278f..79dc3338 100644 --- a/ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt +++ b/ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt @@ -1,6 +1,6 @@ /* * Copyright © 2018 The Android Open Source Project - * Copyright © 2018-2019 WireGuard LLC. All Rights Reserved. + * Copyright © 2017-2025 WireGuard LLC. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package com.wireguard.android.widget @@ -35,10 +35,10 @@ class SlashDrawable(private val mDrawable: Drawable) : Drawable() { val radiusX = scale(CORNER_RADIUS, width) val radiusY = scale(CORNER_RADIUS, height) updateRect( - scale(LEFT, width), - scale(TOP, height), - scale(RIGHT, width), - scale(TOP + mCurrentSlashLength, height) + scale(LEFT, width), + scale(TOP, height), + scale(RIGHT, width), + scale(TOP + mCurrentSlashLength, height) ) mPath.reset() // Draw the slash vertically @@ -69,6 +69,7 @@ class SlashDrawable(private val mDrawable: Drawable) : Drawable() { override fun getIntrinsicWidth() = mDrawable.intrinsicWidth + @Deprecated("Deprecated in API level 29") override fun getOpacity() = PixelFormat.OPAQUE override fun onBoundsChange(bounds: Rect) { |