summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-07-11 20:00:42 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-11 21:03:22 +0200
commiteab0248aaaf9a2117269b30b8ba2ff1604bbc062 (patch)
tree4000221c682018233169f357dbeb316bd94b1fb3 /app/src/main/java
parenta5bbe171cbb017875d3eda107482752ee1cefc8e (diff)
Clean up warnings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/wireguard/android/QuickTileService.java1
-rw-r--r--app/src/main/java/com/wireguard/android/widget/SlashDrawable.java2
-rw-r--r--app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java1
3 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/QuickTileService.java b/app/src/main/java/com/wireguard/android/QuickTileService.java
index 21081034..77f01502 100644
--- a/app/src/main/java/com/wireguard/android/QuickTileService.java
+++ b/app/src/main/java/com/wireguard/android/QuickTileService.java
@@ -45,6 +45,7 @@ public class QuickTileService extends TileService {
private Icon iconOn;
private Icon iconOff;
+ @SuppressWarnings("deprecation")
@Override
public void onCreate() {
final SlashDrawable icon = new SlashDrawable(getResources().getDrawable(R.drawable.ic_tile));
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();
diff --git a/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java b/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java
index 901496e1..fb87b1e9 100644
--- a/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java
+++ b/app/src/main/java/com/wireguard/android/widget/fab/FloatingActionsMenu.java
@@ -35,7 +35,6 @@ import android.widget.TextView;
import com.wireguard.android.R;
-@SuppressWarnings("ReturnOfInnerClass")
public class FloatingActionsMenu extends ViewGroup {
public static final int EXPAND_UP = 0;
public static final int EXPAND_DOWN = 1;