summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-26 00:51:36 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-26 00:51:36 -0600
commit2958144fd0082489a996fbc7a11572f3edbe42eb (patch)
treee18ffe04ca272dd1e9732b56ce4581027beada0b /ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt
parentade8f18a9550b340904cc608029c0fa4fe7186c0 (diff)
ui: cleanup various pieces of kotlin
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
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.kt3
1 files changed, 1 insertions, 2 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 50741264..ee4d278f 100644
--- a/ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt
+++ b/ui/src/main/java/com/wireguard/android/widget/SlashDrawable.kt
@@ -6,13 +6,11 @@
package com.wireguard.android.widget
import android.animation.ObjectAnimator
-import android.animation.ValueAnimator
import android.content.res.ColorStateList
import android.graphics.*
import android.graphics.drawable.Drawable
import android.os.Build
import android.util.FloatProperty
-import android.util.Property
import androidx.annotation.ColorInt
import androidx.annotation.IntRange
import androidx.annotation.RequiresApi
@@ -23,6 +21,7 @@ class SlashDrawable(private val mDrawable: Drawable) : Drawable() {
private val mPath = Path()
private val mSlashRect = RectF()
private var mAnimationEnabled = true
+
// Animate this value on change
private var mCurrentSlashLength = 0f
private var mRotation = 0f