Clean up warnings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
a5bbe171cb
commit
eab0248aaa
@ -45,6 +45,7 @@ public class QuickTileService extends TileService {
|
|||||||
private Icon iconOn;
|
private Icon iconOn;
|
||||||
private Icon iconOff;
|
private Icon iconOff;
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public void onCreate() {
|
public void onCreate() {
|
||||||
final SlashDrawable icon = new SlashDrawable(getResources().getDrawable(R.drawable.ic_tile));
|
final SlashDrawable icon = new SlashDrawable(getResources().getDrawable(R.drawable.ic_tile));
|
||||||
|
@ -117,6 +117,7 @@ public class SlashDrawable extends Drawable {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public void setSlashed(final boolean slashed) {
|
public void setSlashed(final boolean slashed) {
|
||||||
if (mSlashed == slashed) return;
|
if (mSlashed == slashed) return;
|
||||||
|
|
||||||
@ -136,6 +137,7 @@ public class SlashDrawable extends Drawable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public void draw(@NonNull final Canvas canvas) {
|
public void draw(@NonNull final Canvas canvas) {
|
||||||
canvas.save();
|
canvas.save();
|
||||||
|
@ -35,7 +35,6 @@ import android.widget.TextView;
|
|||||||
|
|
||||||
import com.wireguard.android.R;
|
import com.wireguard.android.R;
|
||||||
|
|
||||||
@SuppressWarnings("ReturnOfInnerClass")
|
|
||||||
public class FloatingActionsMenu extends ViewGroup {
|
public class FloatingActionsMenu extends ViewGroup {
|
||||||
public static final int EXPAND_UP = 0;
|
public static final int EXPAND_UP = 0;
|
||||||
public static final int EXPAND_DOWN = 1;
|
public static final int EXPAND_DOWN = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user