summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/widget/SlashDrawable.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/wireguard/android/widget/SlashDrawable.java')
-rw-r--r--app/src/main/java/com/wireguard/android/widget/SlashDrawable.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/widget/SlashDrawable.java b/app/src/main/java/com/wireguard/android/widget/SlashDrawable.java
index bd2da16b..64fe7f73 100644
--- a/app/src/main/java/com/wireguard/android/widget/SlashDrawable.java
+++ b/app/src/main/java/com/wireguard/android/widget/SlashDrawable.java
@@ -117,6 +117,7 @@ public class SlashDrawable extends Drawable {
}
};
+ @SuppressWarnings("unchecked")
public void setSlashed(final boolean slashed) {
if (mSlashed == slashed) return;
@@ -136,6 +137,7 @@ public class SlashDrawable extends Drawable {
}
}
+ @SuppressWarnings("deprecation")
@Override
public void draw(@NonNull final Canvas canvas) {
canvas.save();